Skip to content

Commit f401061

Browse files
author
Tony Varghese
committed
Removed the xxspltiw instructions from the check
1 parent 46eeffc commit f401061

File tree

4 files changed

+19
-38
lines changed

4 files changed

+19
-38
lines changed

llvm/test/CodeGen/PowerPC/xxeval-vselect-x-and.ll

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111

1212
; Function to test ternary(A, xor(B, C), and(B, C)) for <4 x i32>
1313
; CHECK-LABEL: ternary_A_xor_BC_and_BC_4x32
14-
; CHECK: xxspltiw v5, 31
15-
; CHECK-NEXT: xxlxor vs0, v3, v4
14+
; CHECK: xxlxor vs0, v3, v4
1615
; CHECK-NEXT: xxland vs1, v3, v4
1716
; CHECK-NEXT: vslw v2, v2, v5
1817
; CHECK-NEXT: vsraw v2, v2, v5
@@ -45,8 +44,7 @@ entry:
4544

4645
; Function to test ternary(A, nor(B, C), and(B, C)) for <4 x i32>
4746
; CHECK-LABEL: ternary_A_nor_BC_and_BC_4x32
48-
; CHECK: xxspltiw v5, 31
49-
; CHECK-NEXT: xxlnor vs0, v3, v4
47+
; CHECK: xxlnor vs0, v3, v4
5048
; CHECK-NEXT: xxland vs1, v3, v4
5149
; CHECK-NEXT: vslw v2, v2, v5
5250
; CHECK-NEXT: vsraw v2, v2, v5
@@ -82,8 +80,7 @@ entry:
8280

8381
; Function to test ternary(A, eqv(B, C), and(B, C)) for <4 x i32>
8482
; CHECK-LABEL: ternary_A_eqv_BC_and_BC_4x32
85-
; CHECK: xxspltiw v5, 31
86-
; CHECK-NEXT: xxleqv vs0, v3, v4
83+
; CHECK: xxleqv vs0, v3, v4
8784
; CHECK-NEXT: xxland vs1, v3, v4
8885
; CHECK-NEXT: vslw v2, v2, v5
8986
; CHECK-NEXT: vsraw v2, v2, v5
@@ -119,8 +116,7 @@ entry:
119116

120117
; Function to test ternary(A, not(C), and(B, C)) for <4 x i32>
121118
; CHECK-LABEL: ternary_A_not_C_and_BC_4x32
122-
; CHECK: xxspltiw v5, 31
123-
; CHECK-NEXT: xxlnor vs0, v4, v4
119+
; CHECK: xxlnor vs0, v4, v4
124120
; CHECK-NEXT: xxland vs1, v3, v4
125121
; CHECK-NEXT: vslw v2, v2, v5
126122
; CHECK-NEXT: vsraw v2, v2, v5
@@ -154,8 +150,7 @@ entry:
154150

155151
; Function to test ternary(A, not(B), and(B, C)) for <4 x i32>
156152
; CHECK-LABEL: ternary_A_not_B_and_BC_4x32
157-
; CHECK: xxspltiw v5, 31
158-
; CHECK-NEXT: xxlnor vs0, v3, v3
153+
; CHECK: xxlnor vs0, v3, v3
159154
; CHECK-NEXT: xxland vs1, v3, v4
160155
; CHECK-NEXT: vslw v2, v2, v5
161156
; CHECK-NEXT: vsraw v2, v2, v5

llvm/test/CodeGen/PowerPC/xxeval-vselect-x-b.ll

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99

1010
; Function to test ternary(A, and(B, C), B) for <4 x i32>
1111
; CHECK-LABEL: ternary_A_and_BC_B_4x32
12-
; CHECK: xxspltiw v5, 31
13-
; CHECK-NEXT: xxland vs0, v3, v4
12+
; CHECK: xxland vs0, v3, v4
1413
; CHECK-NEXT: vslw v2, v2, v5
1514
; CHECK-NEXT: vsraw v2, v2, v5
1615
; CHECK-NEXT: xxsel v2, v3, vs0, v2
@@ -40,8 +39,7 @@ entry:
4039

4140
; Function to test ternary(A, nor(B, C), B) for <4 x i32>
4241
; CHECK-LABEL: ternary_A_nor_BC_B_4x32
43-
; CHECK: xxspltiw v5, 31
44-
; CHECK-NEXT: xxlnor vs0, v3, v4
42+
; CHECK: xxlnor vs0, v3, v4
4543
; CHECK-NEXT: vslw v2, v2, v5
4644
; CHECK-NEXT: vsraw v2, v2, v5
4745
; CHECK-NEXT: xxsel v2, v3, vs0, v2
@@ -73,8 +71,7 @@ entry:
7371

7472
; Function to test ternary(A, eqv(B, C), B) for <4 x i32>
7573
; CHECK-LABEL: ternary_A_eqv_BC_B_4x32
76-
; CHECK: xxspltiw v5, 31
77-
; CHECK-NEXT: xxleqv vs0, v3, v4
74+
; CHECK: xxleqv vs0, v3, v4
7875
; CHECK-NEXT: vslw v2, v2, v5
7976
; CHECK-NEXT: vsraw v2, v2, v5
8077
; CHECK-NEXT: xxsel v2, v3, vs0, v2
@@ -106,8 +103,7 @@ entry:
106103

107104
; Function to test ternary(A, not(C), B) for <4 x i32>
108105
; CHECK-LABEL: ternary_A_not_C_B_4x32
109-
; CHECK: xxspltiw v5, 31
110-
; CHECK-NEXT: xxlnor vs0, v4, v4
106+
; CHECK: xxlnor vs0, v4, v4
111107
; CHECK-NEXT: vslw v2, v2, v5
112108
; CHECK-NEXT: vsraw v2, v2, v5
113109
; CHECK-NEXT: xxsel v2, v3, vs0, v2
@@ -137,8 +133,7 @@ entry:
137133

138134
; Function to test ternary(A, nand(B, C), B) for <4 x i32>
139135
; CHECK-LABEL: ternary_A_nand_BC_B_4x32
140-
; CHECK: xxspltiw v5, 31
141-
; CHECK-NEXT: xxlnand vs0, v3, v4
136+
; CHECK: xxlnand vs0, v3, v4
142137
; CHECK-NEXT: vslw v2, v2, v5
143138
; CHECK-NEXT: vsraw v2, v2, v5
144139
; CHECK-NEXT: xxsel v2, v3, vs0, v2

llvm/test/CodeGen/PowerPC/xxeval-vselect-x-c.ll

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99

1010
; Function to test ternary(A, and(B, C), C) for <4 x i32>
1111
; CHECK-LABEL: ternary_A_and_BC_C_4x32
12-
; CHECK: xxspltiw v5, 31
13-
; CHECK-NEXT: xxland vs0, v3, v4
12+
; CHECK: xxland vs0, v3, v4
1413
; CHECK-NEXT: vslw v2, v2, v5
1514
; CHECK-NEXT: vsraw v2, v2, v5
1615
; CHECK-NEXT: xxsel v2, v4, vs0, v2
@@ -40,8 +39,7 @@ entry:
4039

4140
; Function to test ternary(A, nor(B, C), C) for <4 x i32>
4241
; CHECK-LABEL: ternary_A_nor_BC_C_4x32
43-
; CHECK: xxspltiw v5, 31
44-
; CHECK-NEXT: xxlnor vs0, v3, v4
42+
; CHECK: xxlnor vs0, v3, v4
4543
; CHECK-NEXT: vslw v2, v2, v5
4644
; CHECK-NEXT: vsraw v2, v2, v5
4745
; CHECK-NEXT: xxsel v2, v4, vs0, v2
@@ -73,8 +71,7 @@ entry:
7371

7472
; Function to test ternary(A, eqv(B, C), C) for <4 x i32>
7573
; CHECK-LABEL: ternary_A_eqv_BC_C_4x32
76-
; CHECK: xxspltiw v5, 31
77-
; CHECK-NEXT: xxleqv vs0, v3, v4
74+
; CHECK: xxleqv vs0, v3, v4
7875
; CHECK-NEXT: vslw v2, v2, v5
7976
; CHECK-NEXT: vsraw v2, v2, v5
8077
; CHECK-NEXT: xxsel v2, v4, vs0, v2
@@ -106,8 +103,7 @@ entry:
106103

107104
; Function to test ternary(A, nand(B, C), C) for <4 x i32>
108105
; CHECK-LABEL: ternary_A_nand_BC_C_4x32
109-
; CHECK: xxspltiw v5, 31
110-
; CHECK-NEXT: xxlnand vs0, v3, v4
106+
; CHECK: xxlnand vs0, v3, v4
111107
; CHECK-NEXT: vslw v2, v2, v5
112108
; CHECK-NEXT: vsraw v2, v2, v5
113109
; CHECK-NEXT: xxsel v2, v4, vs0, v2

llvm/test/CodeGen/PowerPC/xxeval-vselect-x-xor.ll

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99

1010
; Function to test ternary(A, and(B, C), xor(B, C)) for <4 x i32>
1111
; CHECK-LABEL: ternary_A_and_BC_xor_BC_4x32
12-
; CHECK: xxspltiw v5, 31
13-
; CHECK-NEXT: xxland vs0, v3, v4
12+
; CHECK: xxland vs0, v3, v4
1413
; CHECK-NEXT: xxlxor vs1, v3, v4
1514
; CHECK-NEXT: vslw v2, v2, v5
1615
; CHECK-NEXT: vsraw v2, v2, v5
@@ -44,8 +43,7 @@ entry:
4443

4544
; Function to test ternary(A, B, xor(B, C)) for <4 x i32>
4645
; CHECK-LABEL: ternary_A_B_xor_BC_4x32
47-
; CHECK: xxspltiw v5, 31
48-
; CHECK-NEXT: xxlxor vs0, v3, v4
46+
; CHECK: xxlxor vs0, v3, v4
4947
; CHECK-NEXT: vslw v2, v2, v5
5048
; CHECK-NEXT: vsraw v2, v2, v5
5149
; CHECK-NEXT: xxsel v2, vs0, v3, v2
@@ -75,8 +73,7 @@ entry:
7573

7674
; Function to test ternary(A, C, xor(B, C)) for <4 x i32>
7775
; CHECK-LABEL: ternary_A_C_xor_BC_4x32
78-
; CHECK: xxspltiw v5, 31
79-
; CHECK-NEXT: xxlxor vs0, v3, v4
76+
; CHECK: xxlxor vs0, v3, v4
8077
; CHECK-NEXT: vslw v2, v2, v5
8178
; CHECK-NEXT: vsraw v2, v2, v5
8279
; CHECK-NEXT: xxsel v2, vs0, v4, v2
@@ -106,8 +103,7 @@ entry:
106103

107104
; Function to test ternary(A, or(B, C), xor(B, C)) for <4 x i32>
108105
; CHECK-LABEL: ternary_A_or_BC_xor_BC_4x32
109-
; CHECK: xxspltiw v5, 31
110-
; CHECK-NEXT: xxlor vs0, v3, v4
106+
; CHECK: xxlor vs0, v3, v4
111107
; CHECK-NEXT: xxlxor vs1, v3, v4
112108
; CHECK-NEXT: vslw v2, v2, v5
113109
; CHECK-NEXT: vsraw v2, v2, v5
@@ -141,8 +137,7 @@ entry:
141137

142138
; Function to test ternary(A, nor(B, C), xor(B, C)) for <4 x i32>
143139
; CHECK-LABEL: ternary_A_nor_BC_xor_BC_4x32
144-
; CHECK: xxspltiw v5, 31
145-
; CHECK-NEXT: xxlnor vs0, v3, v4
140+
; CHECK: xxlnor vs0, v3, v4
146141
; CHECK-NEXT: xxlxor vs1, v3, v4
147142
; CHECK-NEXT: vslw v2, v2, v5
148143
; CHECK-NEXT: vsraw v2, v2, v5

0 commit comments

Comments
 (0)