@@ -4161,15 +4161,15 @@ class VPatBinaryNoMaskTURoundingMode<string intrinsic_name,
4161
4161
GPR:$vl, sew, TU_MU)>;
4162
4162
4163
4163
4164
- // Same as above but source operands are swapped.
4165
- class VPatBinaryNoMaskSwapped <string intrinsic_name,
4166
- string inst,
4167
- ValueType result_type,
4168
- ValueType op1_type,
4169
- ValueType op2_type,
4170
- int sew,
4171
- VReg op1_reg_class,
4172
- DAGOperand op2_kind> :
4164
+ // Same as VPatBinaryM but source operands are swapped.
4165
+ class VPatBinaryMSwapped <string intrinsic_name,
4166
+ string inst,
4167
+ ValueType result_type,
4168
+ ValueType op1_type,
4169
+ ValueType op2_type,
4170
+ int sew,
4171
+ VReg op1_reg_class,
4172
+ DAGOperand op2_kind> :
4173
4173
Pat<(result_type (!cast<Intrinsic>(intrinsic_name)
4174
4174
(op2_type op2_kind:$rs2),
4175
4175
(op1_type op1_reg_class:$rs1),
@@ -4248,7 +4248,7 @@ class VPatBinaryMaskTARoundingMode<string intrinsic_name,
4248
4248
(XLenVT timm:$round),
4249
4249
GPR:$vl, sew, (XLenVT timm:$policy))>;
4250
4250
4251
- // Same as above but source operands are swapped.
4251
+ // Same as VPatBinaryMask but source operands are swapped.
4252
4252
class VPatBinaryMaskSwapped<string intrinsic_name,
4253
4253
string inst,
4254
4254
ValueType result_type,
@@ -4798,18 +4798,18 @@ multiclass VPatBinaryRoundingMode<string intrinsic,
4798
4798
op2_kind>;
4799
4799
}
4800
4800
4801
- multiclass VPatBinarySwapped <string intrinsic,
4802
- string inst,
4803
- ValueType result_type,
4804
- ValueType op1_type,
4805
- ValueType op2_type,
4806
- ValueType mask_type,
4807
- int sew,
4808
- VReg result_reg_class,
4809
- VReg op1_reg_class,
4810
- DAGOperand op2_kind> {
4811
- def : VPatBinaryNoMaskSwapped <intrinsic, inst, result_type, op1_type, op2_type,
4812
- sew, op1_reg_class, op2_kind>;
4801
+ multiclass VPatBinaryMSwapped <string intrinsic,
4802
+ string inst,
4803
+ ValueType result_type,
4804
+ ValueType op1_type,
4805
+ ValueType op2_type,
4806
+ ValueType mask_type,
4807
+ int sew,
4808
+ VReg result_reg_class,
4809
+ VReg op1_reg_class,
4810
+ DAGOperand op2_kind> {
4811
+ def : VPatBinaryMSwapped <intrinsic, inst, result_type, op1_type, op2_type,
4812
+ sew, op1_reg_class, op2_kind>;
4813
4813
def : VPatBinaryMaskSwapped<intrinsic, inst, result_type, op1_type, op2_type,
4814
4814
mask_type, sew, result_reg_class, op1_reg_class,
4815
4815
op2_kind>;
@@ -5406,10 +5406,10 @@ multiclass VPatBinarySwappedM_VV<string intrinsic, string instruction,
5406
5406
list<VTypeInfo> vtilist> {
5407
5407
foreach vti = vtilist in
5408
5408
let Predicates = GetVTypePredicates<vti>.Predicates in
5409
- defm : VPatBinarySwapped <intrinsic, instruction # "_VV_" # vti.LMul.MX,
5410
- vti.Mask, vti.Vector, vti.Vector, vti.Mask,
5411
- vti.Log2SEW, VR,
5412
- vti.RegClass, vti.RegClass>;
5409
+ defm : VPatBinaryMSwapped <intrinsic, instruction # "_VV_" # vti.LMul.MX,
5410
+ vti.Mask, vti.Vector, vti.Vector, vti.Mask,
5411
+ vti.Log2SEW, VR,
5412
+ vti.RegClass, vti.RegClass>;
5413
5413
}
5414
5414
5415
5415
multiclass VPatBinaryM_VX<string intrinsic, string instruction,
0 commit comments