[llvm] r301638 - [X86][SSE] Add codegen test for _mm_set_pd1 (PR32827)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 28 03:31:42 PDT 2017
Author: rksimon
Date: Fri Apr 28 05:31:42 2017
New Revision: 301638
URL: http://llvm.org/viewvc/llvm-project?rev=301638&view=rev
Log:
[X86][SSE] Add codegen test for _mm_set_pd1 (PR32827)
Modified:
llvm/trunk/test/CodeGen/X86/sse2-intrinsics-fast-isel.ll
Modified: llvm/trunk/test/CodeGen/X86/sse2-intrinsics-fast-isel.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/sse2-intrinsics-fast-isel.ll?rev=301638&r1=301637&r2=301638&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/sse2-intrinsics-fast-isel.ll (original)
+++ llvm/trunk/test/CodeGen/X86/sse2-intrinsics-fast-isel.ll Fri Apr 28 05:31:42 2017
@@ -2318,6 +2318,22 @@ define <2 x double> @test_mm_set_pd(doub
ret <2 x double> %res1
}
+define <2 x double> @test_mm_set_pd1(double %a0) nounwind {
+; X32-LABEL: test_mm_set_pd1:
+; X32: # BB#0:
+; X32-NEXT: movsd {{.*#+}} xmm0 = mem[0],zero
+; X32-NEXT: movlhps {{.*#+}} xmm0 = xmm0[0,0]
+; X32-NEXT: retl
+;
+; X64-LABEL: test_mm_set_pd1:
+; X64: # BB#0:
+; X64-NEXT: movlhps {{.*#+}} xmm0 = xmm0[0,0]
+; X64-NEXT: retq
+ %res0 = insertelement <2 x double> undef, double %a0, i32 0
+ %res1 = insertelement <2 x double> %res0, double %a0, i32 1
+ ret <2 x double> %res1
+}
+
define <2 x double> @test_mm_set_sd(double %a0) nounwind {
; X32-LABEL: test_mm_set_sd:
; X32: # BB#0:
More information about the llvm-commits
mailing list