mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
1a8b789a4b
and %rcr_, leaving just %cr_ which is what people expect. Updated the disassembler to support this unified register set. Added a testcase to verify that the registers continue to be decoded correctly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103196 91177308-0d34-0410-b5e6-96231b3b80d8
60 lines
742 B
Plaintext
60 lines
742 B
Plaintext
# RUN: llvm-mc --disassemble %s -triple=x86_64-apple-darwin9 | FileCheck %s
|
|
|
|
# CHECK: int $33
|
|
0xCD 0x21
|
|
|
|
# CHECK: int $33
|
|
0xCD 0x21
|
|
|
|
|
|
# CHECK: addb %al, (%rax)
|
|
0 0
|
|
|
|
# CHECK: callq -1234
|
|
0xe8 0x2e 0xfb 0xff 0xff
|
|
|
|
# CHECK: lfence
|
|
0x0f 0xae 0xe8
|
|
|
|
# CHECK: mfence
|
|
0x0f 0xae 0xf0
|
|
|
|
# CHECK: monitor
|
|
0x0f 0x01 0xc8
|
|
|
|
# CHECK: mwait
|
|
0x0f 0x01 0xc9
|
|
|
|
# CHECK: vmcall
|
|
0x0f 0x01 0xc1
|
|
|
|
# CHECK: vmlaunch
|
|
0x0f 0x01 0xc2
|
|
|
|
# CHECK: vmresume
|
|
0x0f 0x01 0xc3
|
|
|
|
# CHECK: vmxoff
|
|
0x0f 0x01 0xc4
|
|
|
|
# CHECK: swapgs
|
|
0x0f 0x01 0xf8
|
|
|
|
# CHECK: rdtscp
|
|
0x0f 0x01 0xf9
|
|
|
|
# CHECK: vmxon
|
|
0xf3 0x0f 0xc7 0x30
|
|
|
|
# CHECK: vmptrld
|
|
0x0f 0xc7 0x30
|
|
|
|
# CHECK: vmptrst
|
|
0x0f 0xc7 0x38
|
|
|
|
# CHECK: movl $0, -4(%rbp)
|
|
0xc7 0x45 0xfc 0x00 0x00 0x00 0x00
|
|
|
|
# CHECK: movq %cr0, %rcx
|
|
0x0f 0x20 0xc1
|