diff options
author | Chris Lattner <sabre@nondot.org> | 2010-09-22 05:29:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-09-22 05:29:50 +0000 |
commit | 37fc469f88baab946f454a68798b73b2dc9fbba8 (patch) | |
tree | d62abc0816ea4ba8962ce96170d73a64bea7c111 /llvm/test | |
parent | 2bb9504d1a5cc9149b960644863dbb0518259dd1 (diff) | |
download | bcm5719-llvm-37fc469f88baab946f454a68798b73b2dc9fbba8.tar.gz bcm5719-llvm-37fc469f88baab946f454a68798b73b2dc9fbba8.zip |
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.
llvm-svn: 114533
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/MC/AsmParser/X86/x86_instructions.s | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/llvm/test/MC/AsmParser/X86/x86_instructions.s b/llvm/test/MC/AsmParser/X86/x86_instructions.s index df0acaa9d99..aea617dff00 100644 --- a/llvm/test/MC/AsmParser/X86/x86_instructions.s +++ b/llvm/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] |