forked from OSchip/llvm-project
[mips] Correct the predicates of microMIPS compact branch instructions
llvm-svn: 333541
This commit is contained in:
parent
df8e291ef9
commit
a3aa926c09
|
@ -703,15 +703,13 @@ class WaitMM<string opstr> :
|
|||
InstSE<(outs), (ins uimm10:$code_), !strconcat(opstr, "\t$code_"), [],
|
||||
II_WAIT, FrmOther, opstr>;
|
||||
|
||||
let DecoderNamespace = "MicroMips", Predicates = [InMicroMips, NotMips32r6,
|
||||
NotMips64r6] in {
|
||||
let DecoderNamespace = "MicroMips" in {
|
||||
/// Compact Branch Instructions
|
||||
def BEQZC_MM : CompactBranchMM<"beqzc", brtarget_mm, seteq, GPR32Opnd>,
|
||||
COMPACT_BRANCH_FM_MM<0x7>;
|
||||
COMPACT_BRANCH_FM_MM<0x7>, ISA_MICROMIPS32_NOT_MIPS32R6;
|
||||
def BNEZC_MM : CompactBranchMM<"bnezc", brtarget_mm, setne, GPR32Opnd>,
|
||||
COMPACT_BRANCH_FM_MM<0x5>;
|
||||
}
|
||||
let DecoderNamespace = "MicroMips" in {
|
||||
COMPACT_BRANCH_FM_MM<0x5>, ISA_MICROMIPS32_NOT_MIPS32R6;
|
||||
|
||||
/// Arithmetic Instructions (ALU Immediate)
|
||||
def ADDiu_MM : MMRel, ArithLogicI<"addiu", simm16, GPR32Opnd, II_ADDIU>,
|
||||
ADDI_FM_MM<0xc>, ISA_MICROMIPS32_NOT_MIPS32R6;
|
||||
|
|
Loading…
Reference in New Issue