@@ -6,9 +6,8 @@ define <vscale x 8 x i8> @mask_sext_not_nxv8i8(<vscale x 8 x i1> %m) {
66; CHECK-LABEL: mask_sext_not_nxv8i8:
77; CHECK: # %bb.0:
88; CHECK-NEXT: vsetvli a0, zero, e8, m1, ta, ma
9- ; CHECK-NEXT: vmnot.m v0, v0
10- ; CHECK-NEXT: vmv.v.i v8, 0
11- ; CHECK-NEXT: vmerge.vim v8, v8, -1, v0
9+ ; CHECK-NEXT: vmv.v.i v8, -1
10+ ; CHECK-NEXT: vmerge.vim v8, v8, 0, v0
1211; CHECK-NEXT: ret
1312 %not = xor <vscale x 8 x i1 > %m , splat (i1 true )
1413 %ext = sext <vscale x 8 x i1 > %not to <vscale x 8 x i8 >
@@ -19,9 +18,8 @@ define <vscale x 8 x i8> @mask_zext_not_nxv8i8(<vscale x 8 x i1> %m) {
1918; CHECK-LABEL: mask_zext_not_nxv8i8:
2019; CHECK: # %bb.0:
2120; CHECK-NEXT: vsetvli a0, zero, e8, m1, ta, ma
22- ; CHECK-NEXT: vmnot.m v0, v0
23- ; CHECK-NEXT: vmv.v.i v8, 0
24- ; CHECK-NEXT: vmerge.vim v8, v8, 1, v0
21+ ; CHECK-NEXT: vmv.v.i v8, 1
22+ ; CHECK-NEXT: vmerge.vim v8, v8, 0, v0
2523; CHECK-NEXT: ret
2624 %not = xor <vscale x 8 x i1 > %m , splat (i1 true )
2725 %ext = zext <vscale x 8 x i1 > %not to <vscale x 8 x i8 >
@@ -32,9 +30,8 @@ define <8 x i8> @mask_sext_not_v8i8(<8 x i1> %m) {
3230; CHECK-LABEL: mask_sext_not_v8i8:
3331; CHECK: # %bb.0:
3432; CHECK-NEXT: vsetivli zero, 8, e8, mf2, ta, ma
35- ; CHECK-NEXT: vmnot.m v0, v0
36- ; CHECK-NEXT: vmv.v.i v8, 0
37- ; CHECK-NEXT: vmerge.vim v8, v8, -1, v0
33+ ; CHECK-NEXT: vmv.v.i v8, -1
34+ ; CHECK-NEXT: vmerge.vim v8, v8, 0, v0
3835; CHECK-NEXT: ret
3936 %not = xor <8 x i1 > %m , splat (i1 true )
4037 %ext = sext <8 x i1 > %not to <8 x i8 >
@@ -45,9 +42,8 @@ define <8 x i8> @mask_zext_not_v8i8(<8 x i1> %m) {
4542; CHECK-LABEL: mask_zext_not_v8i8:
4643; CHECK: # %bb.0:
4744; CHECK-NEXT: vsetivli zero, 8, e8, mf2, ta, ma
48- ; CHECK-NEXT: vmnot.m v0, v0
49- ; CHECK-NEXT: vmv.v.i v8, 0
50- ; CHECK-NEXT: vmerge.vim v8, v8, 1, v0
45+ ; CHECK-NEXT: vmv.v.i v8, 1
46+ ; CHECK-NEXT: vmerge.vim v8, v8, 0, v0
5147; CHECK-NEXT: ret
5248 %not = xor <8 x i1 > %m , splat (i1 true )
5349 %ext = zext <8 x i1 > %not to <8 x i8 >
0 commit comments