xref: /aosp_15_r20/external/llvm/test/CodeGen/ARM/ldrd-memoper.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc %s -o /dev/null -mtriple=thumbv7-apple-ios -mcpu=cortex-a8 -debug-only=arm-ldst-opt 2> %t
2*9880d681SAndroid Build Coastguard Worker; RUN: FileCheck %s < %t
3*9880d681SAndroid Build Coastguard Worker; REQUIRES: asserts
4*9880d681SAndroid Build Coastguard Worker; PR8113: ARMLoadStoreOptimizer must preserve memoperands.
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Worker@b = external global i64*
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker; CHECK: Formed {{.*}} t2LDRD{{.*}} mem:LD4[%0] LD4[%0+4]
9*9880d681SAndroid Build Coastguard Workerdefine i64 @t(i64 %a) nounwind readonly {
10*9880d681SAndroid Build Coastguard Workerentry:
11*9880d681SAndroid Build Coastguard Worker	%0 = load i64*, i64** @b, align 4
12*9880d681SAndroid Build Coastguard Worker	%1 = load i64, i64* %0, align 4
13*9880d681SAndroid Build Coastguard Worker	%2 = mul i64 %1, %a
14*9880d681SAndroid Build Coastguard Worker	ret i64 %2
15*9880d681SAndroid Build Coastguard Worker}
16