aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/Disassembler/X86/simple-tests.txt
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2011-10-01 19:54:56 +0000
committerCraig Topper <craig.topper@gmail.com>2011-10-01 19:54:56 +0000
commite1b4a1a07ec79440536e4535721f15de3893cd13 (patch)
tree09df1140050f680680fba1b1909237be3e9e1ab6 /test/MC/Disassembler/X86/simple-tests.txt
parent2bfaf521aed6d486b2d80dbf12b84b456100cb47 (diff)
downloadexternal_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.txt12
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