aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/MachO
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2010-03-19 20:04:42 +0000
committerKevin Enderby <enderby@apple.com>2010-03-19 20:04:42 +0000
commitb46b03b36f50c11d5517024c1d0ef3763085eb90 (patch)
treefa58b47ce4c6975803ed714e91a9bc69a75b1e6a /test/MC/MachO
parent80d23705e6df49a41298fd345be6f8a8d72f4fd0 (diff)
downloadexternal_llvm-b46b03b36f50c11d5517024c1d0ef3763085eb90.zip
external_llvm-b46b03b36f50c11d5517024c1d0ef3763085eb90.tar.gz
external_llvm-b46b03b36f50c11d5517024c1d0ef3763085eb90.tar.bz2
Fixed the encoding problems of the crc32 instructions. All had the Operand size
override prefix and only the r/m16 forms should have had that. Also for variant one, the AT&T syntax, added suffixes to all forms. Also added the missing 64-bit form for 'CRC32 r64, r/m8'. Plus added test cases for all forms and tweaked one test case to add the needed suffixes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98980 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/MachO')
-rw-r--r--test/MC/MachO/Darwin/x86_32_diff_as.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/MC/MachO/Darwin/x86_32_diff_as.s b/test/MC/MachO/Darwin/x86_32_diff_as.s
index 7fe75aa..8bd7c2b 100644
--- a/test/MC/MachO/Darwin/x86_32_diff_as.s
+++ b/test/MC/MachO/Darwin/x86_32_diff_as.s
@@ -549,3 +549,14 @@
ptest 0xdeadbeef(%ebx,%ecx,8),%xmm5
ptest %xmm5,%xmm5
pcmpgtq %xmm5,%xmm5
+ crc32b %bl, %eax
+ crc32b 4(%ebx), %eax
+ crc32w %bx, %eax
+ crc32w 4(%ebx), %eax
+ crc32l %ebx, %eax
+ crc32l 4(%ebx), %eax
+ crc32l 0xdeadbeef(%ebx,%ecx,8),%ecx
+ crc32l 0x45,%ecx
+ crc32l 0x7eed,%ecx
+ crc32l 0xbabecafe,%ecx
+ crc32l %ecx,%ecx