From 5e4755943e2b277880d6b0465b43ecf9d32592ca Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Wed, 22 Jul 2009 01:05:20 +0000 Subject: [PATCH] Added the unconditional JMP with an 8-bit relocation for the assembler / disassembler. llvm-svn: 76712 --- llvm/lib/Target/X86/X86InstrInfo.td | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Target/X86/X86InstrInfo.td b/llvm/lib/Target/X86/X86InstrInfo.td index e83f6aab7be7..eaafe0a7ce2a 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.td +++ b/llvm/lib/Target/X86/X86InstrInfo.td @@ -518,8 +518,10 @@ let isBranch = 1, isTerminator = 1 in class IBr opcode, dag ins, string asm, list pattern> : I; -let isBranch = 1, isBarrier = 1 in +let isBranch = 1, isBarrier = 1 in { def JMP : IBr<0xE9, (ins brtarget:$dst), "jmp\t$dst", [(br bb:$dst)]>; + def JMP8 : IBr<0xEB, (ins brtarget8:$dst), "jmp\t$dst", []>; +} // Indirect branches let isBranch = 1, isTerminator = 1, isBarrier = 1, isIndirectBranch = 1 in {