[llvm-commits] [llvm] r76852 - in /llvm/trunk/test/CodeGen/X86: sse41-extractps-bitcast-0.ll sse41.ll

Chris Lattner sabre at nondot.org
Wed Jul 22 21:43:49 PDT 2009


Author: lattner
Date: Wed Jul 22 23:43:48 2009
New Revision: 76852

URL: http://llvm.org/viewvc/llvm-project?rev=76852&view=rev
Log:
merge another sse41 test into sse41.ll

Removed:
    llvm/trunk/test/CodeGen/X86/sse41-extractps-bitcast-0.ll
Modified:
    llvm/trunk/test/CodeGen/X86/sse41.ll

Removed: llvm/trunk/test/CodeGen/X86/sse41-extractps-bitcast-0.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/sse41-extractps-bitcast-0.ll?rev=76851&view=auto

==============================================================================
--- llvm/trunk/test/CodeGen/X86/sse41-extractps-bitcast-0.ll (original)
+++ llvm/trunk/test/CodeGen/X86/sse41-extractps-bitcast-0.ll (removed)
@@ -1,12 +0,0 @@
-; RUN: llvm-as < %s | llc -march=x86 -mattr=sse41 | grep extractps | count 2
-
-define i32 @foo(<4 x float> %v) {
-  %s = extractelement <4 x float> %v, i32 3
-  %i = bitcast float %s to i32
-  ret i32 %i
-}
-define i32 @boo(<4 x float> %v) {
-  %t = bitcast <4 x float> %v to <4 x i32>
-  %s = extractelement <4 x i32> %t, i32 3
-  ret i32 %s
-}

Modified: llvm/trunk/test/CodeGen/X86/sse41.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/sse41.ll?rev=76852&r1=76851&r2=76852&view=diff

==============================================================================
--- llvm/trunk/test/CodeGen/X86/sse41.ll (original)
+++ llvm/trunk/test/CodeGen/X86/sse41.ll Wed Jul 22 23:43:48 2009
@@ -84,3 +84,26 @@
 declare <4 x i32> @llvm.x86.sse41.pmovsxbd(<16 x i8>) nounwind readnone
 declare <4 x i32> @llvm.x86.sse41.pmovsxwd(<8 x i16>) nounwind readnone
 declare <2 x i64> @llvm.x86.sse41.pmovzxbq(<16 x i8>) nounwind readnone
+
+
+
+
+define i32 @extractps_1(<4 x float> %v) nounwind {
+  %s = extractelement <4 x float> %v, i32 3
+  %i = bitcast float %s to i32
+  ret i32 %i
+
+; X32: _extractps_1:  
+; X32:	  extractps	$3, %xmm0, %eax
+
+; X64: _extractps_1:  
+; X64:	  extractps	$3, %xmm0, %eax
+}
+define i32 @extractps_2(<4 x float> %v) nounwind {
+  %t = bitcast <4 x float> %v to <4 x i32>
+  %s = extractelement <4 x i32> %t, i32 3
+  ret i32 %s
+
+; X64: _extractps_2:
+; X64:	  extractps	$3, %xmm0, %eax
+}





More information about the llvm-commits mailing list