diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-06-03 06:14:58 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-06-03 06:14:58 +0000 |
commit | 9d5fb981b0ebc00e068b9bcb4df7388a8ea94b71 (patch) | |
tree | 137ff9da5e8372e49fce010be73a2cb14828f759 /test/CodeGen/ARM/str_pre-2.ll | |
parent | 95299c194d4f852d17554779117c4125c3fae73d (diff) | |
download | external_llvm-9d5fb981b0ebc00e068b9bcb4df7388a8ea94b71.zip external_llvm-9d5fb981b0ebc00e068b9bcb4df7388a8ea94b71.tar.gz external_llvm-9d5fb981b0ebc00e068b9bcb4df7388a8ea94b71.tar.bz2 |
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.ll | 12 |
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 0000000..e9f1945 --- /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 +} |