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 | 284c931330404e61d548fc1eedf44d5dd1b87507 (patch) | |
tree | a61f753c75c4e7d6e54462ebf075f9fb37236165 /test/CodeGen/ARM/fastisel-thumb-litpool.ll | |
parent | c55ee815d49693df6511ae72b03600bf7afe7863 (diff) | |
download | llvm-284c931330404e61d548fc1eedf44d5dd1b87507.tar.gz llvm-284c931330404e61d548fc1eedf44d5dd1b87507.tar.bz2 llvm-284c931330404e61d548fc1eedf44d5dd1b87507.tar.xz |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200752 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/fastisel-thumb-litpool.ll')
-rw-r--r-- | test/CodeGen/ARM/fastisel-thumb-litpool.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/fastisel-thumb-litpool.ll b/test/CodeGen/ARM/fastisel-thumb-litpool.ll new file mode 100644 index 0000000000..aa9e7260fb --- /dev/null +++ b/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 +} |