Do not unconditionally redefine vec_ext_v16qi and

vec_ext_v4si builtins.  This is a hack; they should
be defined here, then resolved in the X86 BE.
However there is enough other stuff missing in the
X86 BE for SSE41 that this will do for now.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46727 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dale Johannesen 2008-02-04 23:27:29 +00:00
parent fc718542a3
commit a76619337e

View File

@ -764,9 +764,9 @@ let TargetPrefix = "x86" in { // All intrinsics start with "llvm.x86.".
// Vector extract
let TargetPrefix = "x86" in { // All intrinsics start with "llvm.x86.".
def int_x86_sse41_pextrb : GCCBuiltin<"__builtin_ia32_vec_ext_v16qi">,
def int_x86_sse41_pextrb :
Intrinsic<[llvm_i32_ty, llvm_v16i8_ty, llvm_i32_ty]>;
def int_x86_sse41_pextrd : GCCBuiltin<"__builtin_ia32_vec_ext_v4si">,
def int_x86_sse41_pextrd :
Intrinsic<[llvm_i32_ty, llvm_v4i32_ty, llvm_i32_ty]>;
def int_x86_sse41_pextrq : GCCBuiltin<"__builtin_ia32_vec_ext_v2di">,
Intrinsic<[llvm_i64_ty, llvm_v2i64_ty, llvm_i32_ty]>;