diff options
| author | Reed Kotler <rkotler@mips.com> | 2012-10-26 16:18:19 +0000 |
|---|---|---|
| committer | Reed Kotler <rkotler@mips.com> | 2012-10-26 16:18:19 +0000 |
| commit | 4e1c6295679b43f61a5ffde8d41f795b627e6b3f (patch) | |
| tree | 3f31a7cf1db22f230457a0cd735c684000ebed1e /llvm/lib | |
| parent | e2f03771c44152083e3958a14ae543b635891a15 (diff) | |
| download | bcm5719-llvm-4e1c6295679b43f61a5ffde8d41f795b627e6b3f.tar.gz bcm5719-llvm-4e1c6295679b43f61a5ffde8d41f795b627e6b3f.zip | |
(no commit message)
llvm-svn: 166780
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/Mips/Mips16InstrInfo.td | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/Mips16InstrInfo.td b/llvm/lib/Target/Mips/Mips16InstrInfo.td index 3721cc7ba03..feffddc02ee 100644 --- a/llvm/lib/Target/Mips/Mips16InstrInfo.td +++ b/llvm/lib/Target/Mips/Mips16InstrInfo.td @@ -205,6 +205,11 @@ class FRR16_div_ins<bits<5> f, string asmstr, InstrItinClass itin> : FRR16<f, (outs ), (ins CPU16Regs:$rx, CPU16Regs:$ry), !strconcat(asmstr, "\t$$zero, $rx, $ry"), [], itin> ; +class FUnaryRR16_ins<bits<5> f, string asmstr, InstrItinClass itin> : + FRR16<f, (outs CPU16Regs:$rx), (ins CPU16Regs:$ry), + !strconcat(asmstr, "\t$rx, $ry"), [], itin> ; + + class FRR16_M_ins<bits<5> f, string asmstr, InstrItinClass itin> : FRR16<f, (outs CPU16Regs:$rx), (ins), @@ -600,14 +605,14 @@ def MultuRxRyRz16: FMULT16_LO_ins<"multu", IIAlu> { // Purpose: Negate // To negate an integer value. // -def NegRxRy16: FRR16_ins<0b11101, "neg", IIAlu>; +def NegRxRy16: FUnaryRR16_ins<0b11101, "neg", IIAlu>; // // Format: NOT rx, ry MIPS16e // Purpose: Not // To complement an integer value // -def NotRxRy16: FRR16_ins<0b01111, "not", IIAlu>; +def NotRxRy16: FUnaryRR16_ins<0b01111, "not", IIAlu>; // // Format: OR rx, ry MIPS16e |

