diff options
author | Simon Dardis <simon.dardis@mips.com> | 2018-05-30 13:21:13 +0000 |
---|---|---|
committer | Simon Dardis <simon.dardis@mips.com> | 2018-05-30 13:21:13 +0000 |
commit | f990bf1cd249c3ddce8efc049dab02c796f6d418 (patch) | |
tree | eac848b563f832e9aacb99853aea7b844d254496 | |
parent | a3aa926c09b85134b42273e8642cb30021dadbd6 (diff) | |
download | bcm5719-llvm-f990bf1cd249c3ddce8efc049dab02c796f6d418.tar.gz bcm5719-llvm-f990bf1cd249c3ddce8efc049dab02c796f6d418.zip |
[mips] Correct the definition of CTC2/CFC2
llvm-svn: 333542
-rw-r--r-- | llvm/lib/Target/Mips/MicroMipsInstrInfo.td | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/llvm/lib/Target/Mips/MicroMipsInstrInfo.td b/llvm/lib/Target/Mips/MicroMipsInstrInfo.td index 3f6523d2fad..6b08ae4abe7 100644 --- a/llvm/lib/Target/Mips/MicroMipsInstrInfo.td +++ b/llvm/lib/Target/Mips/MicroMipsInstrInfo.td @@ -689,14 +689,12 @@ let DecoderNamespace = "MicroMips" in { ISA_MICROMIPS32_NOT_MIPS32R6; def LWM16_MM : LoadMultMM16<"lwm16", II_LWM>, LWM_FM_MM16<0x4>, ISA_MICROMIPS32_NOT_MIPS32R6; - let AdditionalPredicates = [InMicroMips] in { - def CFC2_MM : InstSE<(outs GPR32Opnd:$rt), (ins COP2Opnd:$impl), - "cfc2\t$rt, $impl", [], II_CFC2, FrmFR, "cfc2">, - POOL32A_CFTC2_FM_MM<0b1100110100>; - def CTC2_MM : InstSE<(outs COP2Opnd:$impl), (ins GPR32Opnd:$rt), - "ctc2\t$rt, $impl", [], II_CTC2, FrmFR, "ctc2">, - POOL32A_CFTC2_FM_MM<0b1101110100>; - } + def CFC2_MM : InstSE<(outs GPR32Opnd:$rt), (ins COP2Opnd:$impl), + "cfc2\t$rt, $impl", [], II_CFC2, FrmFR, "cfc2">, + POOL32A_CFTC2_FM_MM<0b1100110100>, ISA_MICROMIPS; + def CTC2_MM : InstSE<(outs COP2Opnd:$impl), (ins GPR32Opnd:$rt), + "ctc2\t$rt, $impl", [], II_CTC2, FrmFR, "ctc2">, + POOL32A_CFTC2_FM_MM<0b1101110100>, ISA_MICROMIPS; } class WaitMM<string opstr> : |