diff options
| author | Tim Northover <tnorthover@apple.com> | 2014-02-04 10:38:46 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2014-02-04 10:38:46 +0000 |
| commit | e42fb076187dd479b9c6e400c82e9e4a6b51b717 (patch) | |
| tree | 5df3e9ac635511ff17bcaeec1bfbd715a103f347 /llvm/test/CodeGen/ARM/fastisel-thumb-litpool.ll | |
| parent | 40fcff653cc69e91fee195cb9968951006a36736 (diff) | |
| download | bcm5719-llvm-e42fb076187dd479b9c6e400c82e9e4a6b51b717.tar.gz bcm5719-llvm-e42fb076187dd479b9c6e400c82e9e4a6b51b717.zip | |
ARM: fix fast-isel assertion failure
Missing braces on if meant we inserted both ARM and Thumb load for a litpool
entry. This didn't end well.
rdar://problem/15959157
llvm-svn: 200752
Diffstat (limited to 'llvm/test/CodeGen/ARM/fastisel-thumb-litpool.ll')
| -rw-r--r-- | llvm/test/CodeGen/ARM/fastisel-thumb-litpool.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/fastisel-thumb-litpool.ll b/llvm/test/CodeGen/ARM/fastisel-thumb-litpool.ll new file mode 100644 index 00000000000..aa9e7260fb2 --- /dev/null +++ b/llvm/test/CodeGen/ARM/fastisel-thumb-litpool.ll @@ -0,0 +1,11 @@ +; RUN: llc -mtriple=thumbv7-apple-ios -O0 -o - %s | FileCheck %s + +; We used to accidentally create both an ARM and a Thumb ldr here. It led to an +; assertion failure at the time, but could go all the way through to emission, +; hence the CHECK-NOT. + +define i32 @test_thumb_ldrlit() minsize { +; CHECK: ldr r0, LCPI0_0 +; CHECK-NOT: ldr + ret i32 12345678 +} |

