1 ; RUN: llc -stop-after block-placement -o /dev/null %s | FileCheck %s
3 target triple = "thumbv6m-none-none"
5 define i32* @foo(i32* readonly %p0) {
7 %add.ptr = getelementptr inbounds i32, i32* %p0, i32 10
8 %arrayidx = getelementptr inbounds i32, i32* %p0, i32 13
9 %0 = load i32, i32* %arrayidx, align 4
10 %arrayidx1 = getelementptr inbounds i32, i32* %p0, i32 12
11 %1 = load i32, i32* %arrayidx1, align 4
12 %add = add nsw i32 %1, %0
13 %arrayidx2 = getelementptr inbounds i32, i32* %p0, i32 11
14 %2 = load i32, i32* %arrayidx2, align 4
15 %add3 = add nsw i32 %add, %2
16 %3 = load i32, i32* %add.ptr, align 4
17 %add5 = add nsw i32 %add3, %3
18 tail call void @g(i32 %add5)
24 ; CHECK-LABEL: name: foo
25 ; CHECK: [[BASE:%r[0-7]]], {{.*}} tADDi8
26 ; CHECK-NOT: [[BASE]] = tLDMIA_UPD {{.*}} [[BASE]]
27 ; CHECK: tLDMIA killed [[BASE]], {{.*}} def [[BASE]]