[llvm-commits] [llvm] r166780 - /llvm/trunk/lib/Target/Mips/Mips16InstrInfo.td
Reed Kotler
rkotler at mips.com
Fri Oct 26 09:29:17 PDT 2012
The putback message did not get into the log.
This is just to add replace FRR16 format with FUnary16 format for Not
and Neg. This corrects the INS and OUTS.
On 10/26/2012 09:18 AM, Reed Kotler wrote:
> Author: rkotler
> Date: Fri Oct 26 11:18:19 2012
> New Revision: 166780
>
> URL: http://llvm.org/viewvc/llvm-project?rev=166780&view=rev
> Log: (empty)
>
> Modified:
> llvm/trunk/lib/Target/Mips/Mips16InstrInfo.td
>
> Modified: llvm/trunk/lib/Target/Mips/Mips16InstrInfo.td
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/Mips16InstrInfo.td?rev=166780&r1=166779&r2=166780&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Target/Mips/Mips16InstrInfo.td (original)
> +++ llvm/trunk/lib/Target/Mips/Mips16InstrInfo.td Fri Oct 26 11:18:19 2012
> @@ -205,6 +205,11 @@
> 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 @@
> // 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
>
More information about the llvm-commits
mailing list