Skip to content

Commit 6175fcf

Browse files
committed
[NFC] Update some PPC tests marked as auto-generated
Update CodeGen regression tests with marker at first line telling it's auto-generated by the script, under PowerPC directory. For some reason, these tests are generated but manually written, which makes things unclear when someone's change affecting them. However, some tests only show simple change after re-generated, like extra blank lines, disappearing '.localentry', etc. Besides, some tests are generated but added checks for debug output. This commit doesn't try updating them.
1 parent 8e3e148 commit 6175fcf

11 files changed

+649
-215
lines changed

llvm/test/CodeGen/PowerPC/lsr-ctrloop.ll

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,23 @@
66
; for (i = 0; i < 8000; i++)
77
; data[i] = d;
88
; }
9-
;
9+
;
1010
; This loop will be unrolled by 96 and vectorized on power9.
1111
; icmp for loop iteration index and loop trip count(384) has LSRUse for 'reg({0,+,384})'.
12-
; Make sure above icmp does not impact LSR choose best formulae sets based on 'reg({(192 + %0),+,384})'
12+
; Make sure above icmp does not impact LSR choose best formulae sets based on 'reg({(192 + %0),+,384})'
1313

1414
define void @foo(float* nocapture %data, float %d) {
1515
; CHECK-LABEL: foo:
16-
; CHECK: .LBB0_1: # %vector.body
17-
; CHECK: stxv 0, -192(4)
16+
; CHECK: # %bb.0: # %entry
17+
; CHECK-NEXT: li 5, 83
18+
; CHECK-NEXT: addi 4, 3, 192
19+
; CHECK-NEXT: xscvdpspn 0, 1
20+
; CHECK-NEXT: mtctr 5
21+
; CHECK-NEXT: xxspltw 0, 0, 0
22+
; CHECK-NEXT: .p2align 4
23+
; CHECK-NEXT: .LBB0_1: # %vector.body
24+
; CHECK-NEXT: #
25+
; CHECK-NEXT: stxv 0, -192(4)
1826
; CHECK-NEXT: stxv 0, -176(4)
1927
; CHECK-NEXT: stxv 0, -160(4)
2028
; CHECK-NEXT: stxv 0, -144(4)
@@ -40,6 +48,40 @@ define void @foo(float* nocapture %data, float %d) {
4048
; CHECK-NEXT: stxv 0, 176(4)
4149
; CHECK-NEXT: addi 4, 4, 384
4250
; CHECK-NEXT: bdnz .LBB0_1
51+
; CHECK-NEXT: # %bb.2: # %for.body
52+
; CHECK-NEXT: stfs 1, 31872(3)
53+
; CHECK-NEXT: stfs 1, 31876(3)
54+
; CHECK-NEXT: stfs 1, 31880(3)
55+
; CHECK-NEXT: stfs 1, 31884(3)
56+
; CHECK-NEXT: stfs 1, 31888(3)
57+
; CHECK-NEXT: stfs 1, 31892(3)
58+
; CHECK-NEXT: stfs 1, 31896(3)
59+
; CHECK-NEXT: stfs 1, 31900(3)
60+
; CHECK-NEXT: stfs 1, 31904(3)
61+
; CHECK-NEXT: stfs 1, 31908(3)
62+
; CHECK-NEXT: stfs 1, 31912(3)
63+
; CHECK-NEXT: stfs 1, 31916(3)
64+
; CHECK-NEXT: stfs 1, 31920(3)
65+
; CHECK-NEXT: stfs 1, 31924(3)
66+
; CHECK-NEXT: stfs 1, 31928(3)
67+
; CHECK-NEXT: stfs 1, 31932(3)
68+
; CHECK-NEXT: stfs 1, 31936(3)
69+
; CHECK-NEXT: stfs 1, 31940(3)
70+
; CHECK-NEXT: stfs 1, 31944(3)
71+
; CHECK-NEXT: stfs 1, 31948(3)
72+
; CHECK-NEXT: stfs 1, 31952(3)
73+
; CHECK-NEXT: stfs 1, 31956(3)
74+
; CHECK-NEXT: stfs 1, 31960(3)
75+
; CHECK-NEXT: stfs 1, 31964(3)
76+
; CHECK-NEXT: stfs 1, 31968(3)
77+
; CHECK-NEXT: stfs 1, 31972(3)
78+
; CHECK-NEXT: stfs 1, 31976(3)
79+
; CHECK-NEXT: stfs 1, 31980(3)
80+
; CHECK-NEXT: stfs 1, 31984(3)
81+
; CHECK-NEXT: stfs 1, 31988(3)
82+
; CHECK-NEXT: stfs 1, 31992(3)
83+
; CHECK-NEXT: stfs 1, 31996(3)
84+
; CHECK-NEXT: blr
4385

4486
entry:
4587
%broadcast.splatinsert16 = insertelement <4 x float> undef, float %d, i32 0

0 commit comments

Comments
 (0)