llvm.org GIT mirror llvm / 55f9adf
Adjust register numbers in tests to compensate for the new lack of R2. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96407 91177308-0d34-0410-b5e6-96231b3b80d8 Dale Johannesen 10 years ago
4 changed file(s) with 14 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llc < %s | grep {subfc r3,r5,r4}
1 ; RUN: llc < %s | grep {subfze r4,r2}
2 ; RUN: llc < %s -regalloc=local | grep {subfc r2,r5,r4}
1 ; RUN: llc < %s | grep {subfze r4,r6}
2 ; RUN: llc < %s -regalloc=local | grep {subfc r6,r5,r4}
33 ; RUN: llc < %s -regalloc=local | grep {subfze r3,r3}
44 ; The first argument of subfc must not be the same as any other register.
55
99 define void @foo(i32 %y) nounwind ssp {
1010 entry:
1111 ; CHECK: foo
12 ; CHECK: add r2
13 ; CHECK: 0(r2)
12 ; CHECK: add r4
13 ; CHECK: 0(r4)
1414 %y_addr = alloca i32 ; [#uses=2]
1515 %"alloca point" = bitcast i32 0 to i32 ; [#uses=0]
1616 store i32 %y, i32* %y_addr
0 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin | \
1 ; RUN: grep {stw r3, 32751}
1 ; RUN: grep {stw r4, 32751}
22 ; RUN: llc < %s -march=ppc64 -mtriple=powerpc-apple-darwin | \
3 ; RUN: grep {stw r3, 32751}
3 ; RUN: grep {stw r4, 32751}
44 ; RUN: llc < %s -march=ppc64 -mtriple=powerpc-apple-darwin | \
5 ; RUN: grep {std r2, 9024}
5 ; RUN: grep {std r3, 9024}
66
77 define void @test() {
88 store i32 0, i32* inttoptr (i64 48725999 to i32*)
4242
4343 L1: ; preds = %L2, %bb2
4444 %res.3 = phi i32 [ %phitmp, %L2 ], [ 2, %bb2 ] ; [#uses=1]
45 ; PIC: addis r4, r2, ha16(L_BA4__foo_L5-"L1$pb")
46 ; PIC: li r5, lo16(L_BA4__foo_L5-"L1$pb")
47 ; PIC: add r4, r4, r5
48 ; PIC: stw r4
49 ; STATIC: li r2, lo16(L_BA4__foo_L5)
50 ; STATIC: addis r2, r2, ha16(L_BA4__foo_L5)
51 ; STATIC: stw r2
45 ; PIC: addis r5, r4, ha16(L_BA4__foo_L5-"L1$pb")
46 ; PIC: li r6, lo16(L_BA4__foo_L5-"L1$pb")
47 ; PIC: add r5, r5, r6
48 ; PIC: stw r5
49 ; STATIC: li r4, lo16(L_BA4__foo_L5)
50 ; STATIC: addis r4, r4, ha16(L_BA4__foo_L5)
51 ; STATIC: stw r4
5252 store i8* blockaddress(@foo, %L5), i8** @nextaddr, align 4
5353 ret i32 %res.3
5454 }