Skip to content

Commit d8d131d

Browse files
authored
[RISCV] Convert more constant splats in tests to splat shorthand. NFC (#87616)
A handy shorthand for specifying the shufflevector(insertelement(poison, foo, 0), poison, zeroinitializer) splat pattern was introduced in #74620. Some of the RISC-V tests were converted over to use this new form in dbb65dd, this patch handles the rest which didn't have any codegen diffs. This not only converts some constant expressions to the new form, but also instruction sequences that weren't previously constant expressions to constant expressions as well. In some cases this affects codegen, but these have been omitted here and will be handled in a separate PR.
1 parent 9391ff8 commit d8d131d

File tree

242 files changed

+10855
-27481
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

242 files changed

+10855
-27481
lines changed

llvm/test/CodeGen/RISCV/rvv/abs-vp.ll

Lines changed: 24 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ define <vscale x 1 x i8> @vp_abs_nxv1i8_unmasked(<vscale x 1 x i8> %va, i32 zero
2424
; CHECK-NEXT: vrsub.vi v9, v8, 0
2525
; CHECK-NEXT: vmax.vv v8, v8, v9
2626
; CHECK-NEXT: ret
27-
%head = insertelement <vscale x 1 x i1> poison, i1 true, i32 0
28-
%m = shufflevector <vscale x 1 x i1> %head, <vscale x 1 x i1> poison, <vscale x 1 x i32> zeroinitializer
29-
%v = call <vscale x 1 x i8> @llvm.vp.abs.nxv1i8(<vscale x 1 x i8> %va, i1 false, <vscale x 1 x i1> %m, i32 %evl)
27+
%v = call <vscale x 1 x i8> @llvm.vp.abs.nxv1i8(<vscale x 1 x i8> %va, i1 false, <vscale x 1 x i1> splat (i1 true), i32 %evl)
3028
ret <vscale x 1 x i8> %v
3129
}
3230

@@ -50,9 +48,7 @@ define <vscale x 2 x i8> @vp_abs_nxv2i8_unmasked(<vscale x 2 x i8> %va, i32 zero
5048
; CHECK-NEXT: vrsub.vi v9, v8, 0
5149
; CHECK-NEXT: vmax.vv v8, v8, v9
5250
; CHECK-NEXT: ret
53-
%head = insertelement <vscale x 2 x i1> poison, i1 true, i32 0
54-
%m = shufflevector <vscale x 2 x i1> %head, <vscale x 2 x i1> poison, <vscale x 2 x i32> zeroinitializer
55-
%v = call <vscale x 2 x i8> @llvm.vp.abs.nxv2i8(<vscale x 2 x i8> %va, i1 false, <vscale x 2 x i1> %m, i32 %evl)
51+
%v = call <vscale x 2 x i8> @llvm.vp.abs.nxv2i8(<vscale x 2 x i8> %va, i1 false, <vscale x 2 x i1> splat (i1 true), i32 %evl)
5652
ret <vscale x 2 x i8> %v
5753
}
5854

@@ -76,9 +72,7 @@ define <vscale x 4 x i8> @vp_abs_nxv4i8_unmasked(<vscale x 4 x i8> %va, i32 zero
7672
; CHECK-NEXT: vrsub.vi v9, v8, 0
7773
; CHECK-NEXT: vmax.vv v8, v8, v9
7874
; CHECK-NEXT: ret
79-
%head = insertelement <vscale x 4 x i1> poison, i1 true, i32 0
80-
%m = shufflevector <vscale x 4 x i1> %head, <vscale x 4 x i1> poison, <vscale x 4 x i32> zeroinitializer
81-
%v = call <vscale x 4 x i8> @llvm.vp.abs.nxv4i8(<vscale x 4 x i8> %va, i1 false, <vscale x 4 x i1> %m, i32 %evl)
75+
%v = call <vscale x 4 x i8> @llvm.vp.abs.nxv4i8(<vscale x 4 x i8> %va, i1 false, <vscale x 4 x i1> splat (i1 true), i32 %evl)
8276
ret <vscale x 4 x i8> %v
8377
}
8478

@@ -102,9 +96,7 @@ define <vscale x 8 x i8> @vp_abs_nxv8i8_unmasked(<vscale x 8 x i8> %va, i32 zero
10296
; CHECK-NEXT: vrsub.vi v9, v8, 0
10397
; CHECK-NEXT: vmax.vv v8, v8, v9
10498
; CHECK-NEXT: ret
105-
%head = insertelement <vscale x 8 x i1> poison, i1 true, i32 0
106-
%m = shufflevector <vscale x 8 x i1> %head, <vscale x 8 x i1> poison, <vscale x 8 x i32> zeroinitializer
107-
%v = call <vscale x 8 x i8> @llvm.vp.abs.nxv8i8(<vscale x 8 x i8> %va, i1 false, <vscale x 8 x i1> %m, i32 %evl)
99+
%v = call <vscale x 8 x i8> @llvm.vp.abs.nxv8i8(<vscale x 8 x i8> %va, i1 false, <vscale x 8 x i1> splat (i1 true), i32 %evl)
108100
ret <vscale x 8 x i8> %v
109101
}
110102

@@ -128,9 +120,7 @@ define <vscale x 16 x i8> @vp_abs_nxv16i8_unmasked(<vscale x 16 x i8> %va, i32 z
128120
; CHECK-NEXT: vrsub.vi v10, v8, 0
129121
; CHECK-NEXT: vmax.vv v8, v8, v10
130122
; CHECK-NEXT: ret
131-
%head = insertelement <vscale x 16 x i1> poison, i1 true, i32 0
132-
%m = shufflevector <vscale x 16 x i1> %head, <vscale x 16 x i1> poison, <vscale x 16 x i32> zeroinitializer
133-
%v = call <vscale x 16 x i8> @llvm.vp.abs.nxv16i8(<vscale x 16 x i8> %va, i1 false, <vscale x 16 x i1> %m, i32 %evl)
123+
%v = call <vscale x 16 x i8> @llvm.vp.abs.nxv16i8(<vscale x 16 x i8> %va, i1 false, <vscale x 16 x i1> splat (i1 true), i32 %evl)
134124
ret <vscale x 16 x i8> %v
135125
}
136126

@@ -154,9 +144,7 @@ define <vscale x 32 x i8> @vp_abs_nxv32i8_unmasked(<vscale x 32 x i8> %va, i32 z
154144
; CHECK-NEXT: vrsub.vi v12, v8, 0
155145
; CHECK-NEXT: vmax.vv v8, v8, v12
156146
; CHECK-NEXT: ret
157-
%head = insertelement <vscale x 32 x i1> poison, i1 true, i32 0
158-
%m = shufflevector <vscale x 32 x i1> %head, <vscale x 32 x i1> poison, <vscale x 32 x i32> zeroinitializer
159-
%v = call <vscale x 32 x i8> @llvm.vp.abs.nxv32i8(<vscale x 32 x i8> %va, i1 false, <vscale x 32 x i1> %m, i32 %evl)
147+
%v = call <vscale x 32 x i8> @llvm.vp.abs.nxv32i8(<vscale x 32 x i8> %va, i1 false, <vscale x 32 x i1> splat (i1 true), i32 %evl)
160148
ret <vscale x 32 x i8> %v
161149
}
162150

@@ -180,9 +168,7 @@ define <vscale x 64 x i8> @vp_abs_nxv64i8_unmasked(<vscale x 64 x i8> %va, i32 z
180168
; CHECK-NEXT: vrsub.vi v16, v8, 0
181169
; CHECK-NEXT: vmax.vv v8, v8, v16
182170
; CHECK-NEXT: ret
183-
%head = insertelement <vscale x 64 x i1> poison, i1 true, i32 0
184-
%m = shufflevector <vscale x 64 x i1> %head, <vscale x 64 x i1> poison, <vscale x 64 x i32> zeroinitializer
185-
%v = call <vscale x 64 x i8> @llvm.vp.abs.nxv64i8(<vscale x 64 x i8> %va, i1 false, <vscale x 64 x i1> %m, i32 %evl)
171+
%v = call <vscale x 64 x i8> @llvm.vp.abs.nxv64i8(<vscale x 64 x i8> %va, i1 false, <vscale x 64 x i1> splat (i1 true), i32 %evl)
186172
ret <vscale x 64 x i8> %v
187173
}
188174

@@ -206,9 +192,7 @@ define <vscale x 1 x i16> @vp_abs_nxv1i16_unmasked(<vscale x 1 x i16> %va, i32 z
206192
; CHECK-NEXT: vrsub.vi v9, v8, 0
207193
; CHECK-NEXT: vmax.vv v8, v8, v9
208194
; CHECK-NEXT: ret
209-
%head = insertelement <vscale x 1 x i1> poison, i1 true, i32 0
210-
%m = shufflevector <vscale x 1 x i1> %head, <vscale x 1 x i1> poison, <vscale x 1 x i32> zeroinitializer
211-
%v = call <vscale x 1 x i16> @llvm.vp.abs.nxv1i16(<vscale x 1 x i16> %va, i1 false, <vscale x 1 x i1> %m, i32 %evl)
195+
%v = call <vscale x 1 x i16> @llvm.vp.abs.nxv1i16(<vscale x 1 x i16> %va, i1 false, <vscale x 1 x i1> splat (i1 true), i32 %evl)
212196
ret <vscale x 1 x i16> %v
213197
}
214198

@@ -232,9 +216,7 @@ define <vscale x 2 x i16> @vp_abs_nxv2i16_unmasked(<vscale x 2 x i16> %va, i32 z
232216
; CHECK-NEXT: vrsub.vi v9, v8, 0
233217
; CHECK-NEXT: vmax.vv v8, v8, v9
234218
; CHECK-NEXT: ret
235-
%head = insertelement <vscale x 2 x i1> poison, i1 true, i32 0
236-
%m = shufflevector <vscale x 2 x i1> %head, <vscale x 2 x i1> poison, <vscale x 2 x i32> zeroinitializer
237-
%v = call <vscale x 2 x i16> @llvm.vp.abs.nxv2i16(<vscale x 2 x i16> %va, i1 false, <vscale x 2 x i1> %m, i32 %evl)
219+
%v = call <vscale x 2 x i16> @llvm.vp.abs.nxv2i16(<vscale x 2 x i16> %va, i1 false, <vscale x 2 x i1> splat (i1 true), i32 %evl)
238220
ret <vscale x 2 x i16> %v
239221
}
240222

@@ -258,9 +240,7 @@ define <vscale x 4 x i16> @vp_abs_nxv4i16_unmasked(<vscale x 4 x i16> %va, i32 z
258240
; CHECK-NEXT: vrsub.vi v9, v8, 0
259241
; CHECK-NEXT: vmax.vv v8, v8, v9
260242
; CHECK-NEXT: ret
261-
%head = insertelement <vscale x 4 x i1> poison, i1 true, i32 0
262-
%m = shufflevector <vscale x 4 x i1> %head, <vscale x 4 x i1> poison, <vscale x 4 x i32> zeroinitializer
263-
%v = call <vscale x 4 x i16> @llvm.vp.abs.nxv4i16(<vscale x 4 x i16> %va, i1 false, <vscale x 4 x i1> %m, i32 %evl)
243+
%v = call <vscale x 4 x i16> @llvm.vp.abs.nxv4i16(<vscale x 4 x i16> %va, i1 false, <vscale x 4 x i1> splat (i1 true), i32 %evl)
264244
ret <vscale x 4 x i16> %v
265245
}
266246

@@ -284,9 +264,7 @@ define <vscale x 8 x i16> @vp_abs_nxv8i16_unmasked(<vscale x 8 x i16> %va, i32 z
284264
; CHECK-NEXT: vrsub.vi v10, v8, 0
285265
; CHECK-NEXT: vmax.vv v8, v8, v10
286266
; CHECK-NEXT: ret
287-
%head = insertelement <vscale x 8 x i1> poison, i1 true, i32 0
288-
%m = shufflevector <vscale x 8 x i1> %head, <vscale x 8 x i1> poison, <vscale x 8 x i32> zeroinitializer
289-
%v = call <vscale x 8 x i16> @llvm.vp.abs.nxv8i16(<vscale x 8 x i16> %va, i1 false, <vscale x 8 x i1> %m, i32 %evl)
267+
%v = call <vscale x 8 x i16> @llvm.vp.abs.nxv8i16(<vscale x 8 x i16> %va, i1 false, <vscale x 8 x i1> splat (i1 true), i32 %evl)
290268
ret <vscale x 8 x i16> %v
291269
}
292270

@@ -310,9 +288,7 @@ define <vscale x 16 x i16> @vp_abs_nxv16i16_unmasked(<vscale x 16 x i16> %va, i3
310288
; CHECK-NEXT: vrsub.vi v12, v8, 0
311289
; CHECK-NEXT: vmax.vv v8, v8, v12
312290
; CHECK-NEXT: ret
313-
%head = insertelement <vscale x 16 x i1> poison, i1 true, i32 0
314-
%m = shufflevector <vscale x 16 x i1> %head, <vscale x 16 x i1> poison, <vscale x 16 x i32> zeroinitializer
315-
%v = call <vscale x 16 x i16> @llvm.vp.abs.nxv16i16(<vscale x 16 x i16> %va, i1 false, <vscale x 16 x i1> %m, i32 %evl)
291+
%v = call <vscale x 16 x i16> @llvm.vp.abs.nxv16i16(<vscale x 16 x i16> %va, i1 false, <vscale x 16 x i1> splat (i1 true), i32 %evl)
316292
ret <vscale x 16 x i16> %v
317293
}
318294

@@ -336,9 +312,7 @@ define <vscale x 32 x i16> @vp_abs_nxv32i16_unmasked(<vscale x 32 x i16> %va, i3
336312
; CHECK-NEXT: vrsub.vi v16, v8, 0
337313
; CHECK-NEXT: vmax.vv v8, v8, v16
338314
; CHECK-NEXT: ret
339-
%head = insertelement <vscale x 32 x i1> poison, i1 true, i32 0
340-
%m = shufflevector <vscale x 32 x i1> %head, <vscale x 32 x i1> poison, <vscale x 32 x i32> zeroinitializer
341-
%v = call <vscale x 32 x i16> @llvm.vp.abs.nxv32i16(<vscale x 32 x i16> %va, i1 false, <vscale x 32 x i1> %m, i32 %evl)
315+
%v = call <vscale x 32 x i16> @llvm.vp.abs.nxv32i16(<vscale x 32 x i16> %va, i1 false, <vscale x 32 x i1> splat (i1 true), i32 %evl)
342316
ret <vscale x 32 x i16> %v
343317
}
344318

@@ -362,9 +336,7 @@ define <vscale x 1 x i32> @vp_abs_nxv1i32_unmasked(<vscale x 1 x i32> %va, i32 z
362336
; CHECK-NEXT: vrsub.vi v9, v8, 0
363337
; CHECK-NEXT: vmax.vv v8, v8, v9
364338
; CHECK-NEXT: ret
365-
%head = insertelement <vscale x 1 x i1> poison, i1 true, i32 0
366-
%m = shufflevector <vscale x 1 x i1> %head, <vscale x 1 x i1> poison, <vscale x 1 x i32> zeroinitializer
367-
%v = call <vscale x 1 x i32> @llvm.vp.abs.nxv1i32(<vscale x 1 x i32> %va, i1 false, <vscale x 1 x i1> %m, i32 %evl)
339+
%v = call <vscale x 1 x i32> @llvm.vp.abs.nxv1i32(<vscale x 1 x i32> %va, i1 false, <vscale x 1 x i1> splat (i1 true), i32 %evl)
368340
ret <vscale x 1 x i32> %v
369341
}
370342

@@ -388,9 +360,7 @@ define <vscale x 2 x i32> @vp_abs_nxv2i32_unmasked(<vscale x 2 x i32> %va, i32 z
388360
; CHECK-NEXT: vrsub.vi v9, v8, 0
389361
; CHECK-NEXT: vmax.vv v8, v8, v9
390362
; CHECK-NEXT: ret
391-
%head = insertelement <vscale x 2 x i1> poison, i1 true, i32 0
392-
%m = shufflevector <vscale x 2 x i1> %head, <vscale x 2 x i1> poison, <vscale x 2 x i32> zeroinitializer
393-
%v = call <vscale x 2 x i32> @llvm.vp.abs.nxv2i32(<vscale x 2 x i32> %va, i1 false, <vscale x 2 x i1> %m, i32 %evl)
363+
%v = call <vscale x 2 x i32> @llvm.vp.abs.nxv2i32(<vscale x 2 x i32> %va, i1 false, <vscale x 2 x i1> splat (i1 true), i32 %evl)
394364
ret <vscale x 2 x i32> %v
395365
}
396366

@@ -414,9 +384,7 @@ define <vscale x 4 x i32> @vp_abs_nxv4i32_unmasked(<vscale x 4 x i32> %va, i32 z
414384
; CHECK-NEXT: vrsub.vi v10, v8, 0
415385
; CHECK-NEXT: vmax.vv v8, v8, v10
416386
; CHECK-NEXT: ret
417-
%head = insertelement <vscale x 4 x i1> poison, i1 true, i32 0
418-
%m = shufflevector <vscale x 4 x i1> %head, <vscale x 4 x i1> poison, <vscale x 4 x i32> zeroinitializer
419-
%v = call <vscale x 4 x i32> @llvm.vp.abs.nxv4i32(<vscale x 4 x i32> %va, i1 false, <vscale x 4 x i1> %m, i32 %evl)
387+
%v = call <vscale x 4 x i32> @llvm.vp.abs.nxv4i32(<vscale x 4 x i32> %va, i1 false, <vscale x 4 x i1> splat (i1 true), i32 %evl)
420388
ret <vscale x 4 x i32> %v
421389
}
422390

@@ -440,9 +408,7 @@ define <vscale x 8 x i32> @vp_abs_nxv8i32_unmasked(<vscale x 8 x i32> %va, i32 z
440408
; CHECK-NEXT: vrsub.vi v12, v8, 0
441409
; CHECK-NEXT: vmax.vv v8, v8, v12
442410
; CHECK-NEXT: ret
443-
%head = insertelement <vscale x 8 x i1> poison, i1 true, i32 0
444-
%m = shufflevector <vscale x 8 x i1> %head, <vscale x 8 x i1> poison, <vscale x 8 x i32> zeroinitializer
445-
%v = call <vscale x 8 x i32> @llvm.vp.abs.nxv8i32(<vscale x 8 x i32> %va, i1 false, <vscale x 8 x i1> %m, i32 %evl)
411+
%v = call <vscale x 8 x i32> @llvm.vp.abs.nxv8i32(<vscale x 8 x i32> %va, i1 false, <vscale x 8 x i1> splat (i1 true), i32 %evl)
446412
ret <vscale x 8 x i32> %v
447413
}
448414

@@ -466,9 +432,7 @@ define <vscale x 16 x i32> @vp_abs_nxv16i32_unmasked(<vscale x 16 x i32> %va, i3
466432
; CHECK-NEXT: vrsub.vi v16, v8, 0
467433
; CHECK-NEXT: vmax.vv v8, v8, v16
468434
; CHECK-NEXT: ret
469-
%head = insertelement <vscale x 16 x i1> poison, i1 true, i32 0
470-
%m = shufflevector <vscale x 16 x i1> %head, <vscale x 16 x i1> poison, <vscale x 16 x i32> zeroinitializer
471-
%v = call <vscale x 16 x i32> @llvm.vp.abs.nxv16i32(<vscale x 16 x i32> %va, i1 false, <vscale x 16 x i1> %m, i32 %evl)
435+
%v = call <vscale x 16 x i32> @llvm.vp.abs.nxv16i32(<vscale x 16 x i32> %va, i1 false, <vscale x 16 x i1> splat (i1 true), i32 %evl)
472436
ret <vscale x 16 x i32> %v
473437
}
474438

@@ -492,9 +456,7 @@ define <vscale x 1 x i64> @vp_abs_nxv1i64_unmasked(<vscale x 1 x i64> %va, i32 z
492456
; CHECK-NEXT: vrsub.vi v9, v8, 0
493457
; CHECK-NEXT: vmax.vv v8, v8, v9
494458
; CHECK-NEXT: ret
495-
%head = insertelement <vscale x 1 x i1> poison, i1 true, i32 0
496-
%m = shufflevector <vscale x 1 x i1> %head, <vscale x 1 x i1> poison, <vscale x 1 x i32> zeroinitializer
497-
%v = call <vscale x 1 x i64> @llvm.vp.abs.nxv1i64(<vscale x 1 x i64> %va, i1 false, <vscale x 1 x i1> %m, i32 %evl)
459+
%v = call <vscale x 1 x i64> @llvm.vp.abs.nxv1i64(<vscale x 1 x i64> %va, i1 false, <vscale x 1 x i1> splat (i1 true), i32 %evl)
498460
ret <vscale x 1 x i64> %v
499461
}
500462

@@ -518,9 +480,7 @@ define <vscale x 2 x i64> @vp_abs_nxv2i64_unmasked(<vscale x 2 x i64> %va, i32 z
518480
; CHECK-NEXT: vrsub.vi v10, v8, 0
519481
; CHECK-NEXT: vmax.vv v8, v8, v10
520482
; CHECK-NEXT: ret
521-
%head = insertelement <vscale x 2 x i1> poison, i1 true, i32 0
522-
%m = shufflevector <vscale x 2 x i1> %head, <vscale x 2 x i1> poison, <vscale x 2 x i32> zeroinitializer
523-
%v = call <vscale x 2 x i64> @llvm.vp.abs.nxv2i64(<vscale x 2 x i64> %va, i1 false, <vscale x 2 x i1> %m, i32 %evl)
483+
%v = call <vscale x 2 x i64> @llvm.vp.abs.nxv2i64(<vscale x 2 x i64> %va, i1 false, <vscale x 2 x i1> splat (i1 true), i32 %evl)
524484
ret <vscale x 2 x i64> %v
525485
}
526486

@@ -544,9 +504,7 @@ define <vscale x 4 x i64> @vp_abs_nxv4i64_unmasked(<vscale x 4 x i64> %va, i32 z
544504
; CHECK-NEXT: vrsub.vi v12, v8, 0
545505
; CHECK-NEXT: vmax.vv v8, v8, v12
546506
; CHECK-NEXT: ret
547-
%head = insertelement <vscale x 4 x i1> poison, i1 true, i32 0
548-
%m = shufflevector <vscale x 4 x i1> %head, <vscale x 4 x i1> poison, <vscale x 4 x i32> zeroinitializer
549-
%v = call <vscale x 4 x i64> @llvm.vp.abs.nxv4i64(<vscale x 4 x i64> %va, i1 false, <vscale x 4 x i1> %m, i32 %evl)
507+
%v = call <vscale x 4 x i64> @llvm.vp.abs.nxv4i64(<vscale x 4 x i64> %va, i1 false, <vscale x 4 x i1> splat (i1 true), i32 %evl)
550508
ret <vscale x 4 x i64> %v
551509
}
552510

@@ -570,9 +528,7 @@ define <vscale x 7 x i64> @vp_abs_nxv7i64_unmasked(<vscale x 7 x i64> %va, i32 z
570528
; CHECK-NEXT: vrsub.vi v16, v8, 0
571529
; CHECK-NEXT: vmax.vv v8, v8, v16
572530
; CHECK-NEXT: ret
573-
%head = insertelement <vscale x 7 x i1> poison, i1 true, i32 0
574-
%m = shufflevector <vscale x 7 x i1> %head, <vscale x 7 x i1> poison, <vscale x 7 x i32> zeroinitializer
575-
%v = call <vscale x 7 x i64> @llvm.vp.abs.nxv7i64(<vscale x 7 x i64> %va, i1 false, <vscale x 7 x i1> %m, i32 %evl)
531+
%v = call <vscale x 7 x i64> @llvm.vp.abs.nxv7i64(<vscale x 7 x i64> %va, i1 false, <vscale x 7 x i1> splat (i1 true), i32 %evl)
576532
ret <vscale x 7 x i64> %v
577533
}
578534

@@ -596,9 +552,7 @@ define <vscale x 8 x i64> @vp_abs_nxv8i64_unmasked(<vscale x 8 x i64> %va, i32 z
596552
; CHECK-NEXT: vrsub.vi v16, v8, 0
597553
; CHECK-NEXT: vmax.vv v8, v8, v16
598554
; CHECK-NEXT: ret
599-
%head = insertelement <vscale x 8 x i1> poison, i1 true, i32 0
600-
%m = shufflevector <vscale x 8 x i1> %head, <vscale x 8 x i1> poison, <vscale x 8 x i32> zeroinitializer
601-
%v = call <vscale x 8 x i64> @llvm.vp.abs.nxv8i64(<vscale x 8 x i64> %va, i1 false, <vscale x 8 x i1> %m, i32 %evl)
555+
%v = call <vscale x 8 x i64> @llvm.vp.abs.nxv8i64(<vscale x 8 x i64> %va, i1 false, <vscale x 8 x i1> splat (i1 true), i32 %evl)
602556
ret <vscale x 8 x i64> %v
603557
}
604558

@@ -675,8 +629,6 @@ define <vscale x 16 x i64> @vp_abs_nxv16i64_unmasked(<vscale x 16 x i64> %va, i3
675629
; CHECK-NEXT: vrsub.vi v24, v8, 0
676630
; CHECK-NEXT: vmax.vv v8, v8, v24
677631
; CHECK-NEXT: ret
678-
%head = insertelement <vscale x 16 x i1> poison, i1 true, i32 0
679-
%m = shufflevector <vscale x 16 x i1> %head, <vscale x 16 x i1> poison, <vscale x 16 x i32> zeroinitializer
680-
%v = call <vscale x 16 x i64> @llvm.vp.abs.nxv16i64(<vscale x 16 x i64> %va, i1 false, <vscale x 16 x i1> %m, i32 %evl)
632+
%v = call <vscale x 16 x i64> @llvm.vp.abs.nxv16i64(<vscale x 16 x i64> %va, i1 false, <vscale x 16 x i1> splat (i1 true), i32 %evl)
681633
ret <vscale x 16 x i64> %v
682634
}

0 commit comments

Comments
 (0)