@@ -146,8 +146,6 @@ def MipsSDR : SDNode<"MipsISD::SDR", SDTStore,
146
146
//===----------------------------------------------------------------------===//
147
147
// Mips Instruction Predicate Definitions.
148
148
//===----------------------------------------------------------------------===//
149
- def HasSEInReg : Predicate<"Subtarget.hasSEInReg()">,
150
- AssemblerPredicate<"FeatureSEInReg">;
151
149
def HasBitCount : Predicate<"Subtarget.hasBitCount()">,
152
150
AssemblerPredicate<"FeatureBitCount">;
153
151
def HasMips2 : Predicate<"Subtarget.hasMips2()">,
@@ -224,8 +222,6 @@ class INSN_MIPS4_32 { list<Predicate> InsnPredicates = [HasMips4_32]; }
224
222
// The portions of MIPS-IV that were also added to MIPS32R2
225
223
class INSN_MIPS4_32R2 { list<Predicate> InsnPredicates = [HasMips4_32r2]; }
226
224
227
- class INSN_SEINREG { list<Predicate> InsnPredicates = [HasSEInReg]; }
228
-
229
225
//===----------------------------------------------------------------------===//
230
226
231
227
class MipsPat<dag pattern, dag result> : Pat<pattern, result>, PredicateControl {
@@ -839,8 +835,7 @@ class CountLeading1<string opstr, RegisterOperand RO>:
839
835
class SignExtInReg<string opstr, ValueType vt, RegisterOperand RO,
840
836
InstrItinClass itin> :
841
837
InstSE<(outs RO:$rd), (ins RO:$rt), !strconcat(opstr, "\t$rd, $rt"),
842
- [(set RO:$rd, (sext_inreg RO:$rt, vt))], itin, FrmR, opstr>,
843
- INSN_SEINREG;
838
+ [(set RO:$rd, (sext_inreg RO:$rt, vt))], itin, FrmR, opstr>;
844
839
845
840
// Subword Swap
846
841
class SubwordSwap<string opstr, RegisterOperand RO>:
@@ -1165,8 +1160,10 @@ def MFLO : MMRel, MoveFromLOHI<"mflo", GPR32Opnd, AC0>, MFLO_FM<0x12>;
1165
1160
}
1166
1161
1167
1162
/// Sign Ext In Register Instructions.
1168
- def SEB : MMRel, SignExtInReg<"seb", i8, GPR32Opnd, II_SEB>, SEB_FM<0x10, 0x20>;
1169
- def SEH : MMRel, SignExtInReg<"seh", i16, GPR32Opnd, II_SEH>, SEB_FM<0x18, 0x20>;
1163
+ def SEB : MMRel, SignExtInReg<"seb", i8, GPR32Opnd, II_SEB>,
1164
+ SEB_FM<0x10, 0x20>, ISA_MIPS32R2;
1165
+ def SEH : MMRel, SignExtInReg<"seh", i16, GPR32Opnd, II_SEH>,
1166
+ SEB_FM<0x18, 0x20>, ISA_MIPS32R2;
1170
1167
1171
1168
/// Count Leading
1172
1169
def CLZ : MMRel, CountLeading0<"clz", GPR32Opnd>, CLO_FM<0x20>;
0 commit comments