1 ; RUN: llc %s -o /dev/null -mtriple=thumbv7-apple-ios -mcpu=cortex-a8 -debug-only=arm-ldst-opt 2> %t
2 ; RUN: FileCheck %s < %t
4 ; PR8113: ARMLoadStoreOptimizer must preserve memoperands.
6 @b = external global ptr
8 ; CHECK: Formed {{.*}} t2LDRD{{.*}} (load (s32) from %ir.0), (load (s32) from %ir.0 + 4)
9 define i64 @t(i64 %a) nounwind readonly {
11 %0 = load ptr, ptr @b, align 4
12 %1 = load i64, ptr %0, align 4