We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a25e006 commit 7eacdcfCopy full SHA for 7eacdcf
llvm/lib/Target/RISCV/RISCVInstrInfoZvk.td
@@ -737,7 +737,7 @@ foreach vti = AllIntegerVectors in {
737
GetVTypePredicates<vti>.Predicates) in {
738
def : Pat<(vti.Vector (riscv_and_vl (riscv_xor_vl
739
(vti.Vector vti.RegClass:$rs1),
740
- (riscv_splat_vector -1),
+ (riscv_splat_vector !cast<ImmLeaf>("allonessew"#vti.SEW)),
741
(vti.Vector vti.RegClass:$passthru),
742
(vti.Mask VMV0:$vm),
743
VLOpFrag),
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-vandn.ll
@@ -17,8 +17,7 @@ define <8 x i8> @not_signbit_mask_v8i8(<8 x i8> %a, <8 x i8> %b) {
17
; CHECK-ZVKB: # %bb.0:
18
; CHECK-ZVKB-NEXT: vsetivli zero, 8, e8, mf2, ta, ma
19
; CHECK-ZVKB-NEXT: vsra.vi v8, v8, 7
20
-; CHECK-ZVKB-NEXT: vnot.v v8, v8
21
-; CHECK-ZVKB-NEXT: vand.vv v8, v8, v9
+; CHECK-ZVKB-NEXT: vandn.vv v8, v9, v8
22
; CHECK-ZVKB-NEXT: ret
23
%cond = icmp sgt <8 x i8> %a, splat (i8 -1)
24
%r = select <8 x i1> %cond, <8 x i8> %b, <8 x i8> zeroinitializer
@@ -38,8 +37,7 @@ define <4 x i16> @not_signbit_mask_v4i16(<4 x i16> %a, <4 x i16> %b) {
38
37
39
; CHECK-ZVKB-NEXT: vsetivli zero, 4, e16, mf2, ta, ma
40
; CHECK-ZVKB-NEXT: vsra.vi v8, v8, 15
41
42
43
44
%cond = icmp sgt <4 x i16> %a, splat (i16 -1)
45
%r = select <4 x i1> %cond, <4 x i16> %b, <4 x i16> zeroinitializer
0 commit comments