summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/str_pre-2.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-06-03 06:14:58 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-06-03 06:14:58 +0000
commit9d5fb981b0ebc00e068b9bcb4df7388a8ea94b71 (patch)
tree137ff9da5e8372e49fce010be73a2cb14828f759 /test/CodeGen/ARM/str_pre-2.ll
parent95299c194d4f852d17554779117c4125c3fae73d (diff)
downloadllvm-9d5fb981b0ebc00e068b9bcb4df7388a8ea94b71.tar.gz
llvm-9d5fb981b0ebc00e068b9bcb4df7388a8ea94b71.tar.bz2
llvm-9d5fb981b0ebc00e068b9bcb4df7388a8ea94b71.tar.xz
Fold preceding / trailing base inc / dec into the single load / store as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72756 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/str_pre-2.ll')
-rw-r--r--test/CodeGen/ARM/str_pre-2.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/str_pre-2.ll b/test/CodeGen/ARM/str_pre-2.ll
new file mode 100644
index 0000000000..e9f194574e
--- /dev/null
+++ b/test/CodeGen/ARM/str_pre-2.ll
@@ -0,0 +1,12 @@
+; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnu | grep {str.*\\!}
+; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnu | grep {ldr.*\\\[.*\], #+4}
+
+@b = external global i64*
+
+define i64 @t(i64 %a) nounwind readonly {
+entry:
+ %0 = load i64** @b, align 4
+ %1 = load i64* %0, align 4
+ %2 = mul i64 %1, %a
+ ret i64 %2
+}