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 | dfe6e689fdd65034d3ed398e869a69c7cb993fac (patch) | |
| tree | 91c361e9a6c08678342c33b9c389edd4ee4fbb1f /llvm/test/CodeGen/ARM/str_pre-2.ll | |
| parent | d29fc6655f01439817894e7ff768e0ebb1beb853 (diff) | |
| download | bcm5719-llvm-dfe6e689fdd65034d3ed398e869a69c7cb993fac.tar.gz bcm5719-llvm-dfe6e689fdd65034d3ed398e869a69c7cb993fac.zip | |
Fold preceding / trailing base inc / dec into the single load / store as well.
llvm-svn: 72756
Diffstat (limited to 'llvm/test/CodeGen/ARM/str_pre-2.ll')
| -rw-r--r-- | llvm/test/CodeGen/ARM/str_pre-2.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/str_pre-2.ll b/llvm/test/CodeGen/ARM/str_pre-2.ll new file mode 100644 index 00000000000..e9f194574e4 --- /dev/null +++ b/llvm/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 +} |

