diff options
author | Andrew Trick <atrick@apple.com> | 2011-11-11 22:18:09 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2011-11-11 22:18:09 +0000 |
commit | 95bc85e4eefdfc1aabfde85daf752f05d2a60701 (patch) | |
tree | 763d91b446388898d3dfe0ab0fae74935ec10070 /test/CodeGen/ARM/ldrd-memoper.ll | |
parent | ce485e7f70faed6d19daafff91bb20509403d432 (diff) |
Preserve MachineMemOperands in ARMLoadStoreOptimizer.
Fixes PR8113.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144409 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/ldrd-memoper.ll')
-rw-r--r-- | test/CodeGen/ARM/ldrd-memoper.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/ldrd-memoper.ll b/test/CodeGen/ARM/ldrd-memoper.ll new file mode 100644 index 00000000000..f1a1121f6aa --- /dev/null +++ b/test/CodeGen/ARM/ldrd-memoper.ll @@ -0,0 +1,15 @@ +; RUN: llc %s -o /dev/null -mtriple=thumbv7-apple-ios -mcpu=cortex-a8 -debug-only=arm-ldst-opt 2> %t +; RUN: FileCheck %s < %t +; REQUIRES: asserts +; PR8113: ARMLoadStoreOptimizer must preserve memoperands. + +@b = external global i64* + +; CHECK: Formed {{.*}} t2LDRD{{.*}} mem:LD4[%0] LD4[%0+4] +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 +} |