[llvm-commits] [llvm] r76536 - /llvm/trunk/lib/Target/X86/X86InstrInfo.td

Evan Cheng evan.cheng at apple.com
Tue Jul 21 02:09:15 PDT 2009


On Jul 20, 2009, at 11:27 PM, Chris Lattner wrote:

>
> On Jul 20, 2009, at 11:00 PM, Evan Cheng wrote:
>
>> Author: evancheng
>> Date: Tue Jul 21 01:00:18 2009
>> New Revision: 76536
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=76536&view=rev
>> Log:
>> Add jumps with 8-bit relocation for assembler / disassembler. Patch
>> by Sean Callanan.
>
> Very nice, thanks Sean.  Doesn't Sean have commit access?

Sean does. I think he is just too nice so he allows us to review his  
patches first. :-)

Evan

>
> -Chris
>
>>
>> Modified:
>>   llvm/trunk/lib/Target/X86/X86InstrInfo.td
>>
>> Modified: llvm/trunk/lib/Target/X86/X86InstrInfo.td
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrInfo.td?rev=76536&r1=76535&r2=76536&view=diff
>>
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> = 
>> =====================================================================
>> --- llvm/trunk/lib/Target/X86/X86InstrInfo.td (original)
>> +++ llvm/trunk/lib/Target/X86/X86InstrInfo.td Tue Jul 21 01:00:18  
>> 2009
>> @@ -218,6 +218,10 @@
>>  let PrintMethod = "print_pcrel_imm";
>> }
>>
>> +def brtarget8 : Operand<OtherVT> {
>> +  let PrintMethod = "print_pcrel_imm";
>> +}
>> +
>> //
>> =
>> =
>> =
>> ----------------------------------------------------------------------=
>> ==//
>> // X86 Complex Pattern Definitions.
>> //
>> @@ -527,6 +531,26 @@
>>
>> // Conditional branches
>> let Uses = [EFLAGS] in {
>> +// Short conditional jumps
>> +def JO8   : IBr<0x70, (ins brtarget8:$dst), "jo\t$dst", []>;
>> +def JNO8  : IBr<0x71, (ins brtarget8:$dst), "jno\t$dst", []>;
>> +def JB8   : IBr<0x72, (ins brtarget8:$dst), "jb\t$dst", []>;
>> +def JAE8  : IBr<0x73, (ins brtarget8:$dst), "jae\t$dst", []>;
>> +def JE8   : IBr<0x74, (ins brtarget8:$dst), "je\t$dst", []>;
>> +def JNE8  : IBr<0x75, (ins brtarget8:$dst), "jne\t$dst", []>;
>> +def JBE8  : IBr<0x76, (ins brtarget8:$dst), "jbe\t$dst", []>;
>> +def JA8   : IBr<0x77, (ins brtarget8:$dst), "ja\t$dst", []>;
>> +def JS8   : IBr<0x78, (ins brtarget8:$dst), "js\t$dst", []>;
>> +def JNS8  : IBr<0x79, (ins brtarget8:$dst), "jns\t$dst", []>;
>> +def JP8   : IBr<0x7A, (ins brtarget8:$dst), "jp\t$dst", []>;
>> +def JNP8  : IBr<0x7B, (ins brtarget8:$dst), "jnp\t$dst", []>;
>> +def JL8   : IBr<0x7C, (ins brtarget8:$dst), "jl\t$dst", []>;
>> +def JGE8  : IBr<0x7D, (ins brtarget8:$dst), "jge\t$dst", []>;
>> +def JLE8  : IBr<0x7E, (ins brtarget8:$dst), "jle\t$dst", []>;
>> +def JG8   : IBr<0x7F, (ins brtarget8:$dst), "jg\t$dst", []>;
>> +
>> +def JCXZ8 : IBr<0xE3, (ins brtarget8:$dst), "jcxz\t$dst", []>;
>> +
>> def JE  : IBr<0x84, (ins brtarget:$dst), "je\t$dst",
>>              [(X86brcond bb:$dst, X86_COND_E, EFLAGS)]>, TB;
>> def JNE : IBr<0x85, (ins brtarget:$dst), "jne\t$dst",
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
> _______________________________________________
> 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