diff options
author | Kevin Enderby <enderby@apple.com> | 2010-03-19 20:04:42 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2010-03-19 20:04:42 +0000 |
commit | b46b03b36f50c11d5517024c1d0ef3763085eb90 (patch) | |
tree | fa58b47ce4c6975803ed714e91a9bc69a75b1e6a /include | |
parent | 80d23705e6df49a41298fd345be6f8a8d72f4fd0 (diff) | |
download | llvm-b46b03b36f50c11d5517024c1d0ef3763085eb90.tar.gz llvm-b46b03b36f50c11d5517024c1d0ef3763085eb90.tar.bz2 llvm-b46b03b36f50c11d5517024c1d0ef3763085eb90.tar.xz |
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 'include')
-rw-r--r-- | include/llvm/IntrinsicsX86.td | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/IntrinsicsX86.td b/include/llvm/IntrinsicsX86.td index 50ee3582b7..67abd955a1 100644 --- a/include/llvm/IntrinsicsX86.td +++ b/include/llvm/IntrinsicsX86.td @@ -892,7 +892,10 @@ let TargetPrefix = "x86" in { // All intrinsics start with "llvm.x86.". def int_x86_sse42_crc32_32 : GCCBuiltin<"__builtin_ia32_crc32si">, Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty], [IntrNoMem]>; - def int_x86_sse42_crc32_64 : GCCBuiltin<"__builtin_ia32_crc32di">, + def int_x86_sse42_crc64_8 : + Intrinsic<[llvm_i64_ty], [llvm_i64_ty, llvm_i8_ty], + [IntrNoMem]>; + def int_x86_sse42_crc64_64 : GCCBuiltin<"__builtin_ia32_crc32di">, Intrinsic<[llvm_i64_ty], [llvm_i64_ty, llvm_i64_ty], [IntrNoMem]>; } |