From eebc8a1bc505ebb5c702e63c248a8956d88fda77 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 26 Mar 2007 07:53:08 +0000 Subject: Add support for the v1i64 type. This makes better code for this: #include extern __m64 C; void baz(__v2si *A, __v2si *B) { *A = C; _mm_empty(); } We get this: _baz: call "L1$pb" "L1$pb": popl %eax movl L_C$non_lazy_ptr-"L1$pb"(%eax), %eax movq (%eax), %mm0 movl 4(%esp), %eax movq %mm0, (%eax) emms ret GCC gives us this: _baz: pushl %ebx call L3 "L00000000001$pb": L3: popl %ebx subl $8, %esp movl L_C$non_lazy_ptr-"L00000000001$pb"(%ebx), %eax movl (%eax), %edx movl 4(%eax), %ecx movl 16(%esp), %eax movl %edx, (%eax) movl %ecx, 4(%eax) emms addl $8, %esp popl %ebx ret git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35351 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Intrinsics.td | 1 + 1 file changed, 1 insertion(+) (limited to 'include/llvm') diff --git a/include/llvm/Intrinsics.td b/include/llvm/Intrinsics.td index 0f3dfb6..b0aca08 100644 --- a/include/llvm/Intrinsics.td +++ b/include/llvm/Intrinsics.td @@ -94,6 +94,7 @@ def llvm_v16i8_ty : LLVMVectorType; // 16 x i8 def llvm_v8i16_ty : LLVMVectorType; // 8 x i16 def llvm_v2i64_ty : LLVMVectorType; // 2 x i64 def llvm_v2i32_ty : LLVMVectorType; // 2 x i32 +def llvm_v1i64_ty : LLVMVectorType; // 1 x i64 def llvm_v4i32_ty : LLVMVectorType; // 4 x i32 def llvm_v4f32_ty : LLVMVectorType; // 4 x float def llvm_v2f64_ty : LLVMVectorType;// 2 x double -- cgit v1.1