diff options
author | Craig Topper <craig.topper@gmail.com> | 2011-10-01 19:54:56 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2011-10-01 19:54:56 +0000 |
commit | e1b4a1a07ec79440536e4535721f15de3893cd13 (patch) | |
tree | 09df1140050f680680fba1b1909237be3e9e1ab6 /test/MC/Disassembler/X86/simple-tests.txt | |
parent | 2bfaf521aed6d486b2d80dbf12b84b456100cb47 (diff) | |
download | external_llvm-e1b4a1a07ec79440536e4535721f15de3893cd13.zip external_llvm-e1b4a1a07ec79440536e4535721f15de3893cd13.tar.gz external_llvm-e1b4a1a07ec79440536e4535721f15de3893cd13.tar.bz2 |
Fix disassembler handling of CRC32 which is an odd instruction that uses 0xf2 as an opcode extension and allows the opsize prefix. This necessitated adding IC_XD_OPSIZE and IC_64BIT_XD_OPSIZE contexts. Unfortunately, this increases the size of the disassembler tables. Fixes PR10702.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140954 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 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/MC/Disassembler/X86/simple-tests.txt b/test/MC/Disassembler/X86/simple-tests.txt index 55ac9ab..4f88caa 100644 --- a/test/MC/Disassembler/X86/simple-tests.txt +++ b/test/MC/Disassembler/X86/simple-tests.txt @@ -290,3 +290,15 @@ # CHECK: vroundsd $0, %xmm0, %xmm0, %xmm0 0xc4 0xe3 0x79 0x0b 0xc0 0x00 + +# CHECK: crc32b %al, %eax +0xf2 0x0f 0x38 0xf0 0xc0 + +# CHECK: crc32w %ax, %eax +0x66 0xf2 0x0f 0x38 0xf1 0xc0 + +# CHECK: crc32l %eax, %eax +0xf2 0x0f 0x38 0xf1 0xc0 + +# CHECK: crc32q %rax, %rax +0xf2 0x48 0x0f 0x38 0xf1 0xc0 |