From d8358b8e6f4b8a9bd6bb5669f7085e25bee1cee8 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Tue, 28 Aug 2018 22:05:55 +0000 Subject: [PATCH] [X86] Remove GCCBuiltin from kadd intrinsics. We need to custom handle it in clang so we can bit cast to the mask type. llvm-svn: 340875 --- llvm/include/llvm/IR/IntrinsicsX86.td | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/include/llvm/IR/IntrinsicsX86.td b/llvm/include/llvm/IR/IntrinsicsX86.td index 19bb23a..ecea44e 100644 --- a/llvm/include/llvm/IR/IntrinsicsX86.td +++ b/llvm/include/llvm/IR/IntrinsicsX86.td @@ -2765,13 +2765,13 @@ let TargetPrefix = "x86" in { // All intrinsics start with "llvm.x86.". // Mask ops let TargetPrefix = "x86" in { - def int_x86_avx512_kadd_b : GCCBuiltin<"__builtin_ia32_kaddqi">, + def int_x86_avx512_kadd_b : Intrinsic<[llvm_v8i1_ty], [llvm_v8i1_ty, llvm_v8i1_ty], [IntrNoMem]>; - def int_x86_avx512_kadd_w : GCCBuiltin<"__builtin_ia32_kaddhi">, + def int_x86_avx512_kadd_w : Intrinsic<[llvm_v16i1_ty], [llvm_v16i1_ty, llvm_v16i1_ty], [IntrNoMem]>; - def int_x86_avx512_kadd_d : GCCBuiltin<"__builtin_ia32_kaddsi">, + def int_x86_avx512_kadd_d : Intrinsic<[llvm_v32i1_ty], [llvm_v32i1_ty, llvm_v32i1_ty], [IntrNoMem]>; - def int_x86_avx512_kadd_q : GCCBuiltin<"__builtin_ia32_kadddi">, + def int_x86_avx512_kadd_q : Intrinsic<[llvm_v64i1_ty], [llvm_v64i1_ty, llvm_v64i1_ty], [IntrNoMem]>; } -- 2.7.4