diff options
| author | David Peixotto <dpeixott@codeaurora.org> | 2014-01-27 21:39:04 +0000 |
|---|---|---|
| committer | David Peixotto <dpeixott@codeaurora.org> | 2014-01-27 21:39:04 +0000 |
| commit | b76f55f74a3436e3bc89efa4779e88d00c3f0bbd (patch) | |
| tree | 745d1998e8fc36ea3eb68fd56c7993d858752817 /llvm/test/CodeGen/ARM/prefetch-thumb.ll | |
| parent | 5000ee16f6eb6177e98570e786e6b4be050399b3 (diff) | |
| download | bcm5719-llvm-b76f55f74a3436e3bc89efa4779e88d00c3f0bbd.tar.gz bcm5719-llvm-b76f55f74a3436e3bc89efa4779e88d00c3f0bbd.zip | |
Fix unsupported addressing mode assertion for pld
Summary:
This commit gives an address mode to the PLD instruction. We
were getting an assertion failure in the frame lowering code
because we had code that was doing a pld of a stack allocated
address. The frame lowering was checking the address mode and
then asserting because pld had none defined.
This commit fixes pld for arm mode. There was a previous fix for
thumb mode in a separate commit. The commit for thumb mode
added a test in a separate file because it would otherwise fail
for arm. This commit moves the thumb test back into the prefetch.ll
file and adds the corresponding arm test.
Differential Revision: http://llvm-reviews.chandlerc.com/D2622
llvm-svn: 200248
Diffstat (limited to 'llvm/test/CodeGen/ARM/prefetch-thumb.ll')
| -rw-r--r-- | llvm/test/CodeGen/ARM/prefetch-thumb.ll | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/llvm/test/CodeGen/ARM/prefetch-thumb.ll b/llvm/test/CodeGen/ARM/prefetch-thumb.ll deleted file mode 100644 index e6f6ae8d18b..00000000000 --- a/llvm/test/CodeGen/ARM/prefetch-thumb.ll +++ /dev/null @@ -1,22 +0,0 @@ -; RUN: llc < %s -march=thumb -mattr=+v7 | FileCheck %s -check-prefix=THUMB2 -; TODO: This test case will be merged back into prefetch.ll when ARM mode issue is solved. - -declare void @llvm.prefetch(i8*, i32, i32, i32) nounwind - -define void @t6() { -entry: -;ARM: t6: -;ARM: pld [sp] -;ARM: pld [sp, #50] - -;THUMB2: t6: -;THUMB2: pld [sp] -;THUMB2: pld [sp, #50] - -%red = alloca [100 x i8], align 1 -%0 = getelementptr inbounds [100 x i8]* %red, i32 0, i32 0 -%1 = getelementptr inbounds [100 x i8]* %red, i32 0, i32 50 -call void @llvm.prefetch(i8* %0, i32 0, i32 3, i32 1) -call void @llvm.prefetch(i8* %1, i32 0, i32 3, i32 1) -ret void -} |

