Skip to content

Commit c54760e

Browse files
[fixup] Rebase, update tests, add tests for the new all-true patterns, change undef to poison
1 parent 1d56344 commit c54760e

File tree

2 files changed

+405
-25
lines changed

2 files changed

+405
-25
lines changed

llvm/lib/Target/AArch64/SVEInstrFormats.td

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4183,7 +4183,7 @@ multiclass sve2_int_un_pred_arit<bits<2> opc, string asm, SDPatternOperator op>
41834183
multiclass sve2_int_un_pred_arit_z_S<bits<2> opc, string asm, SDPatternOperator op> {
41844184
def _S : sve2_int_un_pred_arit_z<0b10, opc, asm, ZPR32>;
41854185

4186-
def : SVE_3_Op_UndefZero_Pat<nxv4i32, op, nxv4i32, nxv4i1, nxv4i32, !cast<Instruction>(NAME # _S)>;
4186+
defm : SVE_3_Op_UndefZero_Pat<nxv4i32, op, nxv4i32, nxv4i1, nxv4i32, !cast<Instruction>(NAME # _S)>;
41874187
}
41884188

41894189
multiclass sve2_int_un_pred_arit_z<bits<2> opc, string asm, SDPatternOperator op> {
@@ -4192,10 +4192,10 @@ multiclass sve2_int_un_pred_arit_z<bits<2> opc, string asm, SDPatternOperator op
41924192
def _S : sve2_int_un_pred_arit_z<0b10, opc, asm, ZPR32>;
41934193
def _D : sve2_int_un_pred_arit_z<0b11, opc, asm, ZPR64>;
41944194

4195-
def : SVE_3_Op_UndefZero_Pat<nxv16i8, op, nxv16i8, nxv16i1, nxv16i8, !cast<Instruction>(NAME # _B)>;
4196-
def : SVE_3_Op_UndefZero_Pat<nxv8i16, op, nxv8i16, nxv8i1, nxv8i16, !cast<Instruction>(NAME # _H)>;
4197-
def : SVE_3_Op_UndefZero_Pat<nxv4i32, op, nxv4i32, nxv4i1, nxv4i32, !cast<Instruction>(NAME # _S)>;
4198-
def : SVE_3_Op_UndefZero_Pat<nxv2i64, op, nxv2i64, nxv2i1, nxv2i64, !cast<Instruction>(NAME # _D)>;
4195+
defm : SVE_3_Op_UndefZero_Pat<nxv16i8, op, nxv16i8, nxv16i1, nxv16i8, !cast<Instruction>(NAME # _B)>;
4196+
defm : SVE_3_Op_UndefZero_Pat<nxv8i16, op, nxv8i16, nxv8i1, nxv8i16, !cast<Instruction>(NAME # _H)>;
4197+
defm : SVE_3_Op_UndefZero_Pat<nxv4i32, op, nxv4i32, nxv4i1, nxv4i32, !cast<Instruction>(NAME # _S)>;
4198+
defm : SVE_3_Op_UndefZero_Pat<nxv2i64, op, nxv2i64, nxv2i1, nxv2i64, !cast<Instruction>(NAME # _D)>;
41994199
}
42004200

42014201
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)