Skip to content

Commit 685e5ad

Browse files
author
Tony Varghese
committed
Rebased the branch with the latest main.Updated tests using update_llc_test_checks.py
1 parent 71d4680 commit 685e5ad

File tree

4 files changed

+57
-57
lines changed

4 files changed

+57
-57
lines changed

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
; RUN: -ppc-asm-full-reg-names --ppc-vsr-nums-as-vr < %s | FileCheck %s
1212

1313
; Function to test ternary(A, xor(B, C), and(B, C)) for <4 x i32>
14-
define dso_local <4 x i32> @ternary_A_xor_BC_and_BC_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) local_unnamed_addr #0 {
14+
define <4 x i32> @ternary_A_xor_BC_and_BC_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) {
1515
; CHECK-LABEL: ternary_A_xor_BC_and_BC_4x32:
1616
; CHECK: # %bb.0: # %entry
17-
; CHECK-NEXT: xxspltiw v5, 31
17+
; CHECK-NEXT: xxleqv v5, v5, v5
1818
; CHECK-NEXT: xxlxor vs0, v3, v4
1919
; CHECK-NEXT: xxland vs1, v3, v4
2020
; CHECK-NEXT: vslw v2, v2, v5
@@ -29,7 +29,7 @@ entry:
2929
}
3030

3131
; Function to test ternary(A, xor(B, C), and(B, C)) for <2 x i64>
32-
define dso_local <2 x i64> @ternary_A_xor_BC_and_BC_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) local_unnamed_addr #0 {
32+
define <2 x i64> @ternary_A_xor_BC_and_BC_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) {
3333
; CHECK-LABEL: ternary_A_xor_BC_and_BC_2x64:
3434
; CHECK: # %bb.0: # %entry
3535
; CHECK-NEXT: xxlxor v5, v5, v5
@@ -48,10 +48,10 @@ entry:
4848
}
4949

5050
; Function to test ternary(A, nor(B, C), and(B, C)) for <4 x i32>
51-
define dso_local <4 x i32> @ternary_A_nor_BC_and_BC_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) local_unnamed_addr #0 {
51+
define <4 x i32> @ternary_A_nor_BC_and_BC_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) {
5252
; CHECK-LABEL: ternary_A_nor_BC_and_BC_4x32:
5353
; CHECK: # %bb.0: # %entry
54-
; CHECK-NEXT: xxspltiw v5, 31
54+
; CHECK-NEXT: xxleqv v5, v5, v5
5555
; CHECK-NEXT: xxlnor vs0, v3, v4
5656
; CHECK-NEXT: xxland vs1, v3, v4
5757
; CHECK-NEXT: vslw v2, v2, v5
@@ -67,7 +67,7 @@ entry:
6767
}
6868

6969
; Function to test ternary(A, nor(B, C), and(B, C)) for <2 x i64>
70-
define dso_local <2 x i64> @ternary_A_nor_BC_and_BC_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) local_unnamed_addr #0 {
70+
define <2 x i64> @ternary_A_nor_BC_and_BC_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) {
7171
; CHECK-LABEL: ternary_A_nor_BC_and_BC_2x64:
7272
; CHECK: # %bb.0: # %entry
7373
; CHECK-NEXT: xxlxor v5, v5, v5
@@ -87,10 +87,10 @@ entry:
8787
}
8888

8989
; Function to test ternary(A, eqv(B, C), and(B, C)) for <4 x i32>
90-
define dso_local <4 x i32> @ternary_A_eqv_BC_and_BC_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) local_unnamed_addr #0 {
90+
define <4 x i32> @ternary_A_eqv_BC_and_BC_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) {
9191
; CHECK-LABEL: ternary_A_eqv_BC_and_BC_4x32:
9292
; CHECK: # %bb.0: # %entry
93-
; CHECK-NEXT: xxspltiw v5, 31
93+
; CHECK-NEXT: xxleqv v5, v5, v5
9494
; CHECK-NEXT: xxleqv vs0, v3, v4
9595
; CHECK-NEXT: xxland vs1, v3, v4
9696
; CHECK-NEXT: vslw v2, v2, v5
@@ -106,7 +106,7 @@ entry:
106106
}
107107

108108
; Function to test ternary(A, eqv(B, C), and(B, C)) for <2 x i64>
109-
define dso_local <2 x i64> @ternary_A_eqv_BC_and_BC_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) local_unnamed_addr #0 {
109+
define <2 x i64> @ternary_A_eqv_BC_and_BC_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) {
110110
; CHECK-LABEL: ternary_A_eqv_BC_and_BC_2x64:
111111
; CHECK: # %bb.0: # %entry
112112
; CHECK-NEXT: xxlxor v5, v5, v5
@@ -126,10 +126,10 @@ entry:
126126
}
127127

128128
; Function to test ternary(A, not(C), and(B, C)) for <4 x i32>
129-
define dso_local <4 x i32> @ternary_A_not_C_and_BC_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) local_unnamed_addr #0 {
129+
define <4 x i32> @ternary_A_not_C_and_BC_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) {
130130
; CHECK-LABEL: ternary_A_not_C_and_BC_4x32:
131131
; CHECK: # %bb.0: # %entry
132-
; CHECK-NEXT: xxspltiw v5, 31
132+
; CHECK-NEXT: xxleqv v5, v5, v5
133133
; CHECK-NEXT: xxlnor vs0, v4, v4
134134
; CHECK-NEXT: xxland vs1, v3, v4
135135
; CHECK-NEXT: vslw v2, v2, v5
@@ -144,7 +144,7 @@ entry:
144144
}
145145

146146
; Function to test ternary(A, not(C), and(B, C)) for <2 x i64>
147-
define dso_local <2 x i64> @ternary_A_not_C_and_BC_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) local_unnamed_addr #0 {
147+
define <2 x i64> @ternary_A_not_C_and_BC_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) {
148148
; CHECK-LABEL: ternary_A_not_C_and_BC_2x64:
149149
; CHECK: # %bb.0: # %entry
150150
; CHECK-NEXT: xxlxor v5, v5, v5
@@ -163,10 +163,10 @@ entry:
163163
}
164164

165165
; Function to test ternary(A, not(B), and(B, C)) for <4 x i32>
166-
define dso_local <4 x i32> @ternary_A_not_B_and_BC_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) local_unnamed_addr #0 {
166+
define <4 x i32> @ternary_A_not_B_and_BC_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) {
167167
; CHECK-LABEL: ternary_A_not_B_and_BC_4x32:
168168
; CHECK: # %bb.0: # %entry
169-
; CHECK-NEXT: xxspltiw v5, 31
169+
; CHECK-NEXT: xxleqv v5, v5, v5
170170
; CHECK-NEXT: xxlnor vs0, v3, v3
171171
; CHECK-NEXT: xxland vs1, v3, v4
172172
; CHECK-NEXT: vslw v2, v2, v5
@@ -181,7 +181,7 @@ entry:
181181
}
182182

183183
; Function to test ternary(A, not(B), and(B, C)) for <2 x i64>
184-
define dso_local <2 x i64> @ternary_A_not_B_and_BC_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) local_unnamed_addr #0 {
184+
define <2 x i64> @ternary_A_not_B_and_BC_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) {
185185
; CHECK-LABEL: ternary_A_not_B_and_BC_2x64:
186186
; CHECK: # %bb.0: # %entry
187187
; CHECK-NEXT: xxlxor v5, v5, v5

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
; RUN: -ppc-asm-full-reg-names --ppc-vsr-nums-as-vr < %s | FileCheck %s
1212

1313
; Function to test ternary(A, and(B, C), B) for <4 x i32>
14-
define dso_local <4 x i32> @ternary_A_and_BC_B_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) local_unnamed_addr #0 {
14+
define <4 x i32> @ternary_A_and_BC_B_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) {
1515
; CHECK-LABEL: ternary_A_and_BC_B_4x32:
1616
; CHECK: # %bb.0: # %entry
17-
; CHECK-NEXT: xxspltiw v5, 31
17+
; CHECK-NEXT: xxleqv v5, v5, v5
1818
; CHECK-NEXT: xxland vs0, v3, v4
1919
; CHECK-NEXT: vslw v2, v2, v5
2020
; CHECK-NEXT: vsraw v2, v2, v5
@@ -27,7 +27,7 @@ entry:
2727
}
2828

2929
; Function to test ternary(A, and(B, C), B) for <2 x i64>
30-
define dso_local <2 x i64> @ternary_A_and_BC_B_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) local_unnamed_addr #0 {
30+
define <2 x i64> @ternary_A_and_BC_B_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) {
3131
; CHECK-LABEL: ternary_A_and_BC_B_2x64:
3232
; CHECK: # %bb.0: # %entry
3333
; CHECK-NEXT: xxlxor v5, v5, v5
@@ -44,10 +44,10 @@ entry:
4444
}
4545

4646
; Function to test ternary(A, nor(B, C), B) for <4 x i32>
47-
define dso_local <4 x i32> @ternary_A_nor_BC_B_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) local_unnamed_addr #0 {
47+
define <4 x i32> @ternary_A_nor_BC_B_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) {
4848
; CHECK-LABEL: ternary_A_nor_BC_B_4x32:
4949
; CHECK: # %bb.0: # %entry
50-
; CHECK-NEXT: xxspltiw v5, 31
50+
; CHECK-NEXT: xxleqv v5, v5, v5
5151
; CHECK-NEXT: xxlnor vs0, v3, v4
5252
; CHECK-NEXT: vslw v2, v2, v5
5353
; CHECK-NEXT: vsraw v2, v2, v5
@@ -61,7 +61,7 @@ entry:
6161
}
6262

6363
; Function to test ternary(A, nor(B, C), B) for <2 x i64>
64-
define dso_local <2 x i64> @ternary_A_nor_BC_B_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) local_unnamed_addr #0 {
64+
define <2 x i64> @ternary_A_nor_BC_B_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) {
6565
; CHECK-LABEL: ternary_A_nor_BC_B_2x64:
6666
; CHECK: # %bb.0: # %entry
6767
; CHECK-NEXT: xxlxor v5, v5, v5
@@ -79,10 +79,10 @@ entry:
7979
}
8080

8181
; Function to test ternary(A, eqv(B, C), B) for <4 x i32>
82-
define dso_local <4 x i32> @ternary_A_eqv_BC_B_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) local_unnamed_addr #0 {
82+
define <4 x i32> @ternary_A_eqv_BC_B_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) {
8383
; CHECK-LABEL: ternary_A_eqv_BC_B_4x32:
8484
; CHECK: # %bb.0: # %entry
85-
; CHECK-NEXT: xxspltiw v5, 31
85+
; CHECK-NEXT: xxleqv v5, v5, v5
8686
; CHECK-NEXT: xxleqv vs0, v3, v4
8787
; CHECK-NEXT: vslw v2, v2, v5
8888
; CHECK-NEXT: vsraw v2, v2, v5
@@ -96,7 +96,7 @@ entry:
9696
}
9797

9898
; Function to test ternary(A, eqv(B, C), B) for <2 x i64>
99-
define dso_local <2 x i64> @ternary_A_eqv_BC_B_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) local_unnamed_addr #0 {
99+
define <2 x i64> @ternary_A_eqv_BC_B_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) {
100100
; CHECK-LABEL: ternary_A_eqv_BC_B_2x64:
101101
; CHECK: # %bb.0: # %entry
102102
; CHECK-NEXT: xxlxor v5, v5, v5
@@ -114,10 +114,10 @@ entry:
114114
}
115115

116116
; Function to test ternary(A, not(C), B) for <4 x i32>
117-
define dso_local <4 x i32> @ternary_A_not_C_B_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) local_unnamed_addr #0 {
117+
define <4 x i32> @ternary_A_not_C_B_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) {
118118
; CHECK-LABEL: ternary_A_not_C_B_4x32:
119119
; CHECK: # %bb.0: # %entry
120-
; CHECK-NEXT: xxspltiw v5, 31
120+
; CHECK-NEXT: xxleqv v5, v5, v5
121121
; CHECK-NEXT: xxlnor vs0, v4, v4
122122
; CHECK-NEXT: vslw v2, v2, v5
123123
; CHECK-NEXT: vsraw v2, v2, v5
@@ -130,7 +130,7 @@ entry:
130130
}
131131

132132
; Function to test ternary(A, not(C), B) for <2 x i64>
133-
define dso_local <2 x i64> @ternary_A_not_C_B_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) local_unnamed_addr #0 {
133+
define <2 x i64> @ternary_A_not_C_B_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) {
134134
; CHECK-LABEL: ternary_A_not_C_B_2x64:
135135
; CHECK: # %bb.0: # %entry
136136
; CHECK-NEXT: xxlxor v5, v5, v5
@@ -147,10 +147,10 @@ entry:
147147
}
148148

149149
; Function to test ternary(A, nand(B, C), B) for <4 x i32>
150-
define dso_local <4 x i32> @ternary_A_nand_BC_B_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) local_unnamed_addr #0 {
150+
define <4 x i32> @ternary_A_nand_BC_B_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) {
151151
; CHECK-LABEL: ternary_A_nand_BC_B_4x32:
152152
; CHECK: # %bb.0: # %entry
153-
; CHECK-NEXT: xxspltiw v5, 31
153+
; CHECK-NEXT: xxleqv v5, v5, v5
154154
; CHECK-NEXT: xxlnand vs0, v3, v4
155155
; CHECK-NEXT: vslw v2, v2, v5
156156
; CHECK-NEXT: vsraw v2, v2, v5
@@ -164,7 +164,7 @@ entry:
164164
}
165165

166166
; Function to test ternary(A, nand(B, C), B) for <2 x i64>
167-
define dso_local <2 x i64> @ternary_A_nand_BC_B_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) local_unnamed_addr #0 {
167+
define <2 x i64> @ternary_A_nand_BC_B_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) {
168168
; CHECK-LABEL: ternary_A_nand_BC_B_2x64:
169169
; CHECK: # %bb.0: # %entry
170170
; CHECK-NEXT: xxlxor v5, v5, v5

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
; RUN: -ppc-asm-full-reg-names --ppc-vsr-nums-as-vr < %s | FileCheck %s
1212

1313
; Function to test ternary(A, and(B, C), C) for <4 x i32>
14-
define dso_local <4 x i32> @ternary_A_and_BC_C_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) local_unnamed_addr #0 {
14+
define <4 x i32> @ternary_A_and_BC_C_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) {
1515
; CHECK-LABEL: ternary_A_and_BC_C_4x32:
1616
; CHECK: # %bb.0: # %entry
17-
; CHECK-NEXT: xxspltiw v5, 31
17+
; CHECK-NEXT: xxleqv v5, v5, v5
1818
; CHECK-NEXT: xxland vs0, v3, v4
1919
; CHECK-NEXT: vslw v2, v2, v5
2020
; CHECK-NEXT: vsraw v2, v2, v5
@@ -27,7 +27,7 @@ entry:
2727
}
2828

2929
; Function to test ternary(A, and(B, C), C) for <2 x i64>
30-
define dso_local <2 x i64> @ternary_A_and_BC_C_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) local_unnamed_addr #0 {
30+
define <2 x i64> @ternary_A_and_BC_C_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) {
3131
; CHECK-LABEL: ternary_A_and_BC_C_2x64:
3232
; CHECK: # %bb.0: # %entry
3333
; CHECK-NEXT: xxlxor v5, v5, v5
@@ -44,10 +44,10 @@ entry:
4444
}
4545

4646
; Function to test ternary(A, nor(B, C), C) for <4 x i32>
47-
define dso_local <4 x i32> @ternary_A_nor_BC_C_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) local_unnamed_addr #0 {
47+
define <4 x i32> @ternary_A_nor_BC_C_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) {
4848
; CHECK-LABEL: ternary_A_nor_BC_C_4x32:
4949
; CHECK: # %bb.0: # %entry
50-
; CHECK-NEXT: xxspltiw v5, 31
50+
; CHECK-NEXT: xxleqv v5, v5, v5
5151
; CHECK-NEXT: xxlnor vs0, v3, v4
5252
; CHECK-NEXT: vslw v2, v2, v5
5353
; CHECK-NEXT: vsraw v2, v2, v5
@@ -61,7 +61,7 @@ entry:
6161
}
6262

6363
; Function to test ternary(A, nor(B, C), C) for <2 x i64>
64-
define dso_local <2 x i64> @ternary_A_nor_BC_C_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) local_unnamed_addr #0 {
64+
define <2 x i64> @ternary_A_nor_BC_C_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) {
6565
; CHECK-LABEL: ternary_A_nor_BC_C_2x64:
6666
; CHECK: # %bb.0: # %entry
6767
; CHECK-NEXT: xxlxor v5, v5, v5
@@ -79,10 +79,10 @@ entry:
7979
}
8080

8181
; Function to test ternary(A, eqv(B, C), C) for <4 x i32>
82-
define dso_local <4 x i32> @ternary_A_eqv_BC_C_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) local_unnamed_addr #0 {
82+
define <4 x i32> @ternary_A_eqv_BC_C_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) {
8383
; CHECK-LABEL: ternary_A_eqv_BC_C_4x32:
8484
; CHECK: # %bb.0: # %entry
85-
; CHECK-NEXT: xxspltiw v5, 31
85+
; CHECK-NEXT: xxleqv v5, v5, v5
8686
; CHECK-NEXT: xxleqv vs0, v3, v4
8787
; CHECK-NEXT: vslw v2, v2, v5
8888
; CHECK-NEXT: vsraw v2, v2, v5
@@ -96,7 +96,7 @@ entry:
9696
}
9797

9898
; Function to test ternary(A, eqv(B, C), C) for <2 x i64>
99-
define dso_local <2 x i64> @ternary_A_eqv_BC_C_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) local_unnamed_addr #0 {
99+
define <2 x i64> @ternary_A_eqv_BC_C_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) {
100100
; CHECK-LABEL: ternary_A_eqv_BC_C_2x64:
101101
; CHECK: # %bb.0: # %entry
102102
; CHECK-NEXT: xxlxor v5, v5, v5
@@ -114,10 +114,10 @@ entry:
114114
}
115115

116116
; Function to test ternary(A, nand(B, C), C) for <4 x i32>
117-
define dso_local <4 x i32> @ternary_A_nand_BC_C_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) local_unnamed_addr #0 {
117+
define <4 x i32> @ternary_A_nand_BC_C_4x32(<4 x i1> %A, <4 x i32> %B, <4 x i32> %C) {
118118
; CHECK-LABEL: ternary_A_nand_BC_C_4x32:
119119
; CHECK: # %bb.0: # %entry
120-
; CHECK-NEXT: xxspltiw v5, 31
120+
; CHECK-NEXT: xxleqv v5, v5, v5
121121
; CHECK-NEXT: xxlnand vs0, v3, v4
122122
; CHECK-NEXT: vslw v2, v2, v5
123123
; CHECK-NEXT: vsraw v2, v2, v5
@@ -131,7 +131,7 @@ entry:
131131
}
132132

133133
; Function to test ternary(A, nand(B, C), C) for <2 x i64>
134-
define dso_local <2 x i64> @ternary_A_nand_BC_C_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) local_unnamed_addr #0 {
134+
define <2 x i64> @ternary_A_nand_BC_C_2x64(<2 x i1> %A, <2 x i64> %B, <2 x i64> %C) {
135135
; CHECK-LABEL: ternary_A_nand_BC_C_2x64:
136136
; CHECK: # %bb.0: # %entry
137137
; CHECK-NEXT: xxlxor v5, v5, v5

0 commit comments

Comments
 (0)