summaryrefslogtreecommitdiff
path: root/test/MC/AsmParser
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-07-19 20:44:16 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-07-19 20:44:16 +0000
commit77e2dd7bb2bb5f28d389ba246d815cd9848ee53b (patch)
treeb16b34278967fc4a46e228ebc66e66a7abe7d4f9 /test/MC/AsmParser
parent519f179fa7c559629780140cfa356298f438e1e0 (diff)
downloadllvm-77e2dd7bb2bb5f28d389ba246d815cd9848ee53b.tar.gz
llvm-77e2dd7bb2bb5f28d389ba246d815cd9848ee53b.tar.bz2
llvm-77e2dd7bb2bb5f28d389ba246d815cd9848ee53b.tar.xz
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/MC/AsmParser')
-rw-r--r--test/MC/AsmParser/X86/x86_32-new-encoder.s3
-rw-r--r--test/MC/AsmParser/X86/x86_64-new-encoder.s3
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 e97e4940a4..713e780a78 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 2b280d1220..b94f19bebf 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)