From cf0e269d16f3d784b428c9b1b1e22d1f9e8bb91d Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Fri, 20 Jan 2012 21:14:06 +0000 Subject: [PATCH] Intel syntax: For now, disable ambiguous JMP64pcrel32 for intel syntax. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148569 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86InstrControl.td | 4 +++- test/MC/X86/intel-syntax-encoding.s | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/Target/X86/X86InstrControl.td b/lib/Target/X86/X86InstrControl.td index c228a0aed59..e52dcbf6579 100644 --- a/lib/Target/X86/X86InstrControl.td +++ b/lib/Target/X86/X86InstrControl.td @@ -43,8 +43,10 @@ let isBarrier = 1, isBranch = 1, isTerminator = 1 in { "jmp\t$dst", [(br bb:$dst)]>; def JMP_1 : Ii8PCRel<0xEB, RawFrm, (outs), (ins brtarget8:$dst), "jmp\t$dst", []>; + // FIXME : Intel syntax for JMP64pcrel32 such that it is not ambiguious + // with JMP_1. def JMP64pcrel32 : I<0xE9, RawFrm, (outs), (ins brtarget:$dst), - "jmp{q}\t$dst", []>; + "jmpq\t$dst", []>; } // Conditional Branches. diff --git a/test/MC/X86/intel-syntax-encoding.s b/test/MC/X86/intel-syntax-encoding.s index c81636bcbbd..32e77506029 100644 --- a/test/MC/X86/intel-syntax-encoding.s +++ b/test/MC/X86/intel-syntax-encoding.s @@ -31,4 +31,7 @@ // CHECK: encoding: [0x48,0x83,0xc0,0xf4] add rax, -12 - +LBB0_3: +// CHECK: encoding: [0xeb,A] + jmp LBB0_3 +