From f01cf60ed74650d19118d46e63723573048c2241 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Tue, 4 Apr 2006 21:48:31 +0000 Subject: [PATCH] Added intrinsics to match __builtin_ia32_pslldqi128 and __builtin_ia32_psrldqi128. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27411 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Intrinsics.td | 1 + include/llvm/IntrinsicsX86.td | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/include/llvm/Intrinsics.td b/include/llvm/Intrinsics.td index a714a9c3dd7..9ac8daaef40 100644 --- a/include/llvm/Intrinsics.td +++ b/include/llvm/Intrinsics.td @@ -82,6 +82,7 @@ def llvm_descriptor_ty : LLVMType; // global* def llvm_v16i8_ty : LLVMPackedType; // 16 x sbyte def llvm_v8i16_ty : LLVMPackedType; // 8 x short +def llvm_v2i64_ty : LLVMPackedType; // 2 x long def llvm_v2i32_ty : LLVMPackedType; // 2 x int def llvm_v4i32_ty : LLVMPackedType; // 4 x int def llvm_v4f32_ty : LLVMPackedType; // 4 x float diff --git a/include/llvm/IntrinsicsX86.td b/include/llvm/IntrinsicsX86.td index 238c5faf732..96cc2bc79cf 100644 --- a/include/llvm/IntrinsicsX86.td +++ b/include/llvm/IntrinsicsX86.td @@ -183,6 +183,16 @@ let TargetPrefix = "x86" in { // All intrinsics start with "llvm.x86.". llvm_v2f64_ty], [InstrNoMem]>; } +// Integer shift ops. +let TargetPrefix = "x86" in { // All intrinsics start with "llvm.x86.". + def int_x86_sse2_psll_dq : GCCBuiltin<"__builtin_ia32_pslldqi128">, + Intrinsic<[llvm_v2i64_ty, llvm_v2i64_ty, + llvm_int_ty], [InstrNoMem]>; + def int_x86_sse2_psrl_dq : GCCBuiltin<"__builtin_ia32_psrldqi128">, + Intrinsic<[llvm_v2i64_ty, llvm_v2i64_ty, + llvm_int_ty], [InstrNoMem]>; +} + // Misc. let TargetPrefix = "x86" in { // All intrinsics start with "llvm.x86.". def int_x86_sse2_packsswb_128 : GCCBuiltin<"__builtin_ia32_packsswb128">,