diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-07-19 20:44:16 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-07-19 20:44:16 +0000 |
commit | 77e2dd7bb2bb5f28d389ba246d815cd9848ee53b (patch) | |
tree | b16b34278967fc4a46e228ebc66e66a7abe7d4f9 /test | |
parent | 519f179fa7c559629780140cfa356298f438e1e0 (diff) | |
download | external_llvm-77e2dd7bb2bb5f28d389ba246d815cd9848ee53b.zip external_llvm-77e2dd7bb2bb5f28d389ba246d815cd9848ee53b.tar.gz external_llvm-77e2dd7bb2bb5f28d389ba246d815cd9848ee53b.tar.bz2 |
X86: Mark JMP{32,64}[mr] as requires 32-bit/64-bit mode. They are the same
instruction, we only want to allow the one for the current subtarget.
- This also fixes suffix matching for jmp instructions, because it eliminates
the ambiguity between 'jmpl' and 'jmpq'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108746 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/AsmParser/X86/x86_32-new-encoder.s | 3 | ||||
-rw-r--r-- | test/MC/AsmParser/X86/x86_64-new-encoder.s | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/test/MC/AsmParser/X86/x86_32-new-encoder.s b/test/MC/AsmParser/X86/x86_32-new-encoder.s index e97e494..713e780 100644 --- a/test/MC/AsmParser/X86/x86_32-new-encoder.s +++ b/test/MC/AsmParser/X86/x86_32-new-encoder.s @@ -415,3 +415,6 @@ retl // CHECK: encoding: [0x61] popal +// CHECK: jmpl *8(%eax) +// CHECK: encoding: [0xff,0x60,0x08] + jmp *8(%eax) diff --git a/test/MC/AsmParser/X86/x86_64-new-encoder.s b/test/MC/AsmParser/X86/x86_64-new-encoder.s index 2b280d1..b94f19b 100644 --- a/test/MC/AsmParser/X86/x86_64-new-encoder.s +++ b/test/MC/AsmParser/X86/x86_64-new-encoder.s @@ -150,3 +150,6 @@ btq $0x01,%rdx // CHECK: [0x65,0x8b,0x04,0x25,0x7c,0x00,0x00,0x00] movl %gs:124, %eax +// CHECK: jmpq *8(%rax) +// CHECK: encoding: [0xff,0x60,0x08] + jmp *8(%rax) |