[llvm] r316226 - [X86][SSE] Add missing _mm_extract_ps fast-isel test
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 20 12:29:01 PDT 2017
Author: rksimon
Date: Fri Oct 20 12:29:01 2017
New Revision: 316226
URL: http://llvm.org/viewvc/llvm-project?rev=316226&view=rev
Log:
[X86][SSE] Add missing _mm_extract_ps fast-isel test
Modified:
llvm/trunk/test/CodeGen/X86/sse41-intrinsics-fast-isel.ll
Modified: llvm/trunk/test/CodeGen/X86/sse41-intrinsics-fast-isel.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/sse41-intrinsics-fast-isel.ll?rev=316226&r1=316225&r2=316226&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/sse41-intrinsics-fast-isel.ll (original)
+++ llvm/trunk/test/CodeGen/X86/sse41-intrinsics-fast-isel.ll Fri Oct 20 12:29:01 2017
@@ -468,7 +468,22 @@ define i64 @test_mm_extract_epi64(<2 x i
ret i64 %ext
}
-; TODO test_mm_extract_ps
+define i32 @test_mm_extract_ps(<4 x float> %a0) {
+; X32-LABEL: test_mm_extract_ps:
+; X32: # BB#0:
+; X32-NEXT: movshdup {{.*#+}} xmm0 = xmm0[1,1,3,3]
+; X32-NEXT: movd %xmm0, %eax
+; X32-NEXT: retl
+;
+; X64-LABEL: test_mm_extract_ps:
+; X64: # BB#0:
+; X64-NEXT: movshdup {{.*#+}} xmm0 = xmm0[1,1,3,3]
+; X64-NEXT: movd %xmm0, %eax
+; X64-NEXT: retq
+ %ext = extractelement <4 x float> %a0, i32 1
+ %bc = bitcast float %ext to i32
+ ret i32 %bc
+}
define <2 x double> @test_mm_floor_pd(<2 x double> %a0) {
; X32-LABEL: test_mm_floor_pd:
More information about the llvm-commits
mailing list