diff options
author | Craig Topper <craig.topper@gmail.com> | 2011-10-02 21:08:12 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2011-10-02 21:08:12 +0000 |
commit | 82f131a017f27462162062bd9ad0d4cea3166c61 (patch) | |
tree | bfa36af374f7d7bd230f22354a8bf526de290065 /test/MC/Disassembler/X86/simple-tests.txt | |
parent | 146c6d77f02bfc631ff21f01c14edbf52f1aa884 (diff) | |
download | external_llvm-82f131a017f27462162062bd9ad0d4cea3166c61.zip external_llvm-82f131a017f27462162062bd9ad0d4cea3166c61.tar.gz external_llvm-82f131a017f27462162062bd9ad0d4cea3166c61.tar.bz2 |
Fix some Intel syntax disassembly issues with instructions that implicitly use AL/AX/EAX/RAX such as ADD/SUB/ADC/SUBB/XOR/OR/AND/CMP/MOV/TEST.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140974 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/Disassembler/X86/simple-tests.txt')
-rw-r--r-- | test/MC/Disassembler/X86/simple-tests.txt | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/test/MC/Disassembler/X86/simple-tests.txt b/test/MC/Disassembler/X86/simple-tests.txt index fc64d64..cfaeb06 100644 --- a/test/MC/Disassembler/X86/simple-tests.txt +++ b/test/MC/Disassembler/X86/simple-tests.txt @@ -309,5 +309,59 @@ # CHECK: invvpid (%rax), %rax 0x66 0x0f 0x38 0x81 0x00 +# CHECK: nop +0x90 + # CHECK: xchgl %r8d, %eax 0x41 0x90 + +# CHECK: xchgq %r8, %rax +0x49 0x90 + +# CHECK: addb $0, %al +0x04 0x00 + +# CHECK: addw $0, %ax +0x66 0x05 0x00 0x00 + +# CHECK: addl $0, %eax +0x05 0x00 0x00 0x00 0x00 + +# CHECK: addq $0, %rax +0x48 0x05 0x00 0x00 0x00 0x00 + +# CHECK: adcb $0, %al +0x14 0x00 + +# CHECK: adcw $0, %ax +0x66 0x15 0x00 0x00 + +# CHECK: adcl $0, %eax +0x15 0x00 0x00 0x00 0x00 + +# CHECK: adcq $0, %rax +0x48 0x15 0x00 0x00 0x00 0x00 + +# CHECK: cmpb $0, %al +0x3c 0x00 + +# CHECK: cmpw $0, %ax +0x66 0x3d 0x00 0x00 + +# CHECK: cmpl $0, %eax +0x3d 0x00 0x00 0x00 0x00 + +# CHECK: cmpq $0, %rax +0x48 0x3d 0x00 0x00 0x00 0x00 + +# CHECK: testb $0, %al +0xa8 0x00 + +# CHECK: testw $0, %ax +0x66 0xa9 0x00 0x00 + +# CHECK: testl $0, %eax +0xa9 0x00 0x00 0x00 0x00 + +# CHECK: testq $0, %rax +0x48 0xa9 0x00 0x00 0x00 0x00 |