@@ -871,29 +871,16 @@ multiclass WMMAInst<string Suffix, string Instr, VOPProfile P, SDPatternOperator
871
871
defvar WMMAConstraints3Addr = "@earlyclobber $vdst";
872
872
873
873
defvar WMMAProfile = VOPProfileWMMA<P, Suffix, _Src01RC64, Type.hasClamp, Type.hasOpsel>;
874
- if !eq(Suffix, "_w32") then {
875
- let Mnemonic = Instr, mayRaiseFPException = 0, ReadsModeReg = 0 in {
876
- let Constraints = WMMAConstraints2Addr, isConvertibleToThreeAddress = 1 in {
877
- def _twoaddr_w32 : VOP3P_Pseudo<Instr # Suffix, WMMAProfile>;
878
- }
879
- let Constraints = WMMAConstraints3Addr, SchedRW = [Write32Bit, Write32Bit] in {
880
- def _threeaddr_w32 : VOP3P_Pseudo<Instr # Suffix, WMMAProfile>;
881
- }
874
+ let Mnemonic = Instr, mayRaiseFPException = 0, ReadsModeReg = 0 in {
875
+ let Constraints = WMMAConstraints2Addr, isConvertibleToThreeAddress = 1 in {
876
+ def _twoaddr # Suffix : VOP3P_Pseudo<Instr # Suffix, WMMAProfile>;
882
877
}
883
- def : WMMAOpcodeMapping<!cast<Instruction>(NAME # _twoaddr_w32),
884
- !cast<Instruction>(NAME # _threeaddr_w32)>;
885
- } else if !eq(Suffix, "_w64") then {
886
- let Mnemonic = Instr, mayRaiseFPException = 0, ReadsModeReg = 0 in {
887
- let Constraints = WMMAConstraints2Addr, isConvertibleToThreeAddress = 1 in {
888
- def _twoaddr_w64 : VOP3P_Pseudo<Instr # Suffix, WMMAProfile>;
889
- }
890
- let Constraints = WMMAConstraints3Addr, SchedRW = [Write32Bit, Write32Bit] in {
891
- def _threeaddr_w64 : VOP3P_Pseudo<Instr # Suffix, WMMAProfile>;
892
- }
878
+ let Constraints = WMMAConstraints3Addr, SchedRW = [Write32Bit, Write32Bit] in {
879
+ def _threeaddr # Suffix : VOP3P_Pseudo<Instr # Suffix, WMMAProfile>;
893
880
}
894
- def : WMMAOpcodeMapping<!cast<Instruction>(NAME # _twoaddr_w64),
895
- !cast<Instruction>(NAME # _threeaddr_w64)>;
896
881
}
882
+ def : WMMAOpcodeMapping<!cast<Instruction>(NAME # _twoaddr # Suffix),
883
+ !cast<Instruction>(NAME # _threeaddr # Suffix)>;
897
884
898
885
if !eq(Type, WMMAOpSel) then {
899
886
def : WMMAOpSelPat<!cast<Instruction>(NAME # _twoaddr # Suffix), node, P>;
0 commit comments