summaryrefslogtreecommitdiff
path: root/test/MC
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-05-12 23:13:36 +0000
committerChris Lattner <sabre@nondot.org>2010-05-12 23:13:36 +0000
commit0de8e3f10ac42abbd642fb2bdab5911374b14a75 (patch)
tree8c545e0535a5b4df1513bdc5ad69faa6c232b56e /test/MC
parent431300797b84600fc9b4eb8ca283277d3e0674eb (diff)
downloadllvm-0de8e3f10ac42abbd642fb2bdab5911374b14a75.tar.gz
llvm-0de8e3f10ac42abbd642fb2bdab5911374b14a75.tar.bz2
llvm-0de8e3f10ac42abbd642fb2bdab5911374b14a75.tar.xz
moffset forms of moves are x86-32 only, make the parser
lower them to the correct x86-64 instructions since we don't have a clean way to handle this in td files yet. rdar://7947184 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103668 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r--test/MC/AsmParser/X86/x86_32-new-encoder.s1
-rw-r--r--test/MC/AsmParser/X86/x86_64-new-encoder.s7
2 files changed, 7 insertions, 1 deletions
diff --git a/test/MC/AsmParser/X86/x86_32-new-encoder.s b/test/MC/AsmParser/X86/x86_32-new-encoder.s
index 6ce98680d1..136d6f51b8 100644
--- a/test/MC/AsmParser/X86/x86_32-new-encoder.s
+++ b/test/MC/AsmParser/X86/x86_32-new-encoder.s
@@ -52,7 +52,6 @@ rdtscp
shrl $1, %eax
// moffset forms of moves, rdar://7947184
-
movb 0, %al // CHECK: movb 0, %al # encoding: [0xa0,A,A,A,A]
movw 0, %ax // CHECK: movw 0, %ax # encoding: [0x66,0xa1,A,A,A,A]
movl 0, %eax // CHECK: movl 0, %eax # encoding: [0xa1,A,A,A,A]
diff --git a/test/MC/AsmParser/X86/x86_64-new-encoder.s b/test/MC/AsmParser/X86/x86_64-new-encoder.s
index e2db48495b..f119eaa210 100644
--- a/test/MC/AsmParser/X86/x86_64-new-encoder.s
+++ b/test/MC/AsmParser/X86/x86_64-new-encoder.s
@@ -69,3 +69,10 @@ stosq
stosl
// CHECK: stosl
// CHECK: encoding: [0xab]
+
+
+// Not moffset forms of moves, they are x86-32 only! rdar://7947184
+movb 0, %al // CHECK: movb 0, %al # encoding: [0x8a,0x04,0x25,A,A,A,A]
+movw 0, %ax // CHECK: movw 0, %ax # encoding: [0x66,0x8b,0x04,0x25,A,A,A,A]
+movl 0, %eax // CHECK: movl 0, %eax # encoding: [0x8b,0x04,0x25,A,A,A,A]
+