[llvm-commits] [llvm] r103878 - in /llvm/trunk/lib/Target/ARM: ARMInstrInfo.td ARMInstrThumb.td

Chris Lattner clattner at apple.com
Sat May 15 10:42:41 PDT 2010


On May 15, 2010, at 10:19 AM, Anton Korobeynikov wrote:

> Author: asl
> Date: Sat May 15 12:19:20 2010
> New Revision: 103878
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=103878&view=rev
> Log:
> "trap" pseudo-op turned out to be apple-local.
> Temporary emit it as raw bytes until it will be added to binutils as well.

Ok.  This should use the escape for the comment character in the asm string though.   I think it is ${:comment} ?

-Chris

> 
> Modified:
>    llvm/trunk/lib/Target/ARM/ARMInstrInfo.td
>    llvm/trunk/lib/Target/ARM/ARMInstrThumb.td
> 
> Modified: llvm/trunk/lib/Target/ARM/ARMInstrInfo.td
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstrInfo.td?rev=103878&r1=103877&r2=103878&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Target/ARM/ARMInstrInfo.td (original)
> +++ llvm/trunk/lib/Target/ARM/ARMInstrInfo.td Sat May 15 12:19:20 2010
> @@ -791,8 +791,11 @@
> }
> 
> // A5.4 Permanently UNDEFINED instructions.
> +// FIXME: Temporary emitted as raw bytes until this pseudo-op will be added to
> +// binutils
> let isBarrier = 1, isTerminator = 1 in
> -def TRAP : AXI<(outs), (ins), MiscFrm, NoItinerary, "trap", [(trap)]>,
> +def TRAP : AXI<(outs), (ins), MiscFrm, NoItinerary, 
> +               ".long 0xe7ffdefe @ trap", [(trap)]>,
>            Requires<[IsARM]> {
>   let Inst{27-25} = 0b011;
>   let Inst{24-20} = 0b11111;
> 
> Modified: llvm/trunk/lib/Target/ARM/ARMInstrThumb.td
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstrThumb.td?rev=103878&r1=103877&r2=103878&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Target/ARM/ARMInstrThumb.td (original)
> +++ llvm/trunk/lib/Target/ARM/ARMInstrThumb.td Sat May 15 12:19:20 2010
> @@ -419,8 +419,11 @@
> 
> // A8.6.16 B: Encoding T1
> // If Inst{11-8} == 0b1110 then UNDEFINED
> +// FIXME: Temporary emitted as raw bytes until this pseudo-op will be added to
> +// binutils
> let isBarrier = 1, isTerminator = 1 in
> -def tTRAP : TI<(outs), (ins), IIC_Br, "trap", [(trap)]>, Encoding16 {
> +def tTRAP : TI<(outs), (ins), IIC_Br, 
> +               ".word 0xdefe @ trap", [(trap)]>, Encoding16 {
>   let Inst{15-12} = 0b1101;
>   let Inst{11-8} = 0b1110;
> }
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits





More information about the llvm-commits mailing list