summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-22 05:29:50 +0000
committerChris Lattner <sabre@nondot.org>2010-09-22 05:29:50 +0000
commitbc57c6db4a3a1f5df4450d8dbb100e1eb6944c28 (patch)
treedc7198801624bf6dc9a5f6bbec1c5fd419174f8e /test
parentf7d4da0c1dcdac3941fe440982bce19706541629 (diff)
downloadllvm-bc57c6db4a3a1f5df4450d8dbb100e1eb6944c28.tar.gz
llvm-bc57c6db4a3a1f5df4450d8dbb100e1eb6944c28.tar.bz2
llvm-bc57c6db4a3a1f5df4450d8dbb100e1eb6944c28.tar.xz
fix rdar://8456412 - llvm-mc crash in encoder on "mov %rdx, %cr8"
Teaching the code generator about CR8-15, how to rex them up, etc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114533 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/AsmParser/X86/x86_instructions.s14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/MC/AsmParser/X86/x86_instructions.s b/test/MC/AsmParser/X86/x86_instructions.s
index df0acaa9d9..aea617dff0 100644
--- a/test/MC/AsmParser/X86/x86_instructions.s
+++ b/test/MC/AsmParser/X86/x86_instructions.s
@@ -340,4 +340,16 @@ fcmova %st(1), %st(0) // CHECK: fcmovnbe %st(1), %st(0)
// rdar://8456417
.byte 88 + 1 & 15 // CHECK: .byte 9
-
+// rdar://8456412
+mov %rdx, %cr0
+// CHECK: movq %rdx, %cr0
+// CHECK: encoding: [0x0f,0x22,0xc2]
+mov %rdx, %cr4
+// CHECK: movq %rdx, %cr4
+// CHECK: encoding: [0x0f,0x22,0xe2]
+mov %rdx, %cr8
+// CHECK: movq %rdx, %cr8
+// CHECK: encoding: [0x44,0x0f,0x22,0xc2]
+mov %rdx, %cr15
+// CHECK: movq %rdx, %cr15
+// CHECK: encoding: [0x44,0x0f,0x22,0xfa]