[llvm-commits] [llvm] r78482 - /llvm/trunk/include/llvm/IntrinsicsX86.td
Eli Friedman
eli.friedman at gmail.com
Sat Aug 8 17:02:28 PDT 2009
On Sat, Aug 8, 2009 at 11:08 AM, Eric Christopher<echristo at apple.com> wrote:
> +// Miscellaneous
> +// CRC Instruction
> +let TargetPrefix = "x86" in { // All intrinsics start with "llvm.x86.".
> + def int_x86_sse42_crc32_8 : GCCBuiltin<"__builtin_ia32_crc32qi">,
> + Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i8_ty],
> + [IntrNoMem]>;
> + def int_x86_sse42_crc32_16 : GCCBuiltin<"__builtin_ia32_crc32hi">,
> + Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i8_ty],
> + [IntrNoMem]>;
> + def int_x86_sse42_crc32_32 : GCCBuiltin<"__builtin_ia32_crc32si">,
> + Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i8_ty],
> + [IntrNoMem]>;
> + def int_x86_sse42_crc32_64 : GCCBuiltin<"__builtin_ia32_crc32di">,
> + Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i8_ty],
> + [IntrNoMem]>;
> +}
Umm, I think int_x86_sse42_crc32_16 is supposed to take [llvm_i32_ty,
llvm_i16_ty], and similar for the other widths...
-Eli
More information about the llvm-commits
mailing list