[llvm] r270080 - [X86][SSE2] Fixed shuffle of results in _mm_cmpnge_sd/_mm_cmpngt_sd tests
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu May 19 09:49:53 PDT 2016
Author: rksimon
Date: Thu May 19 11:49:53 2016
New Revision: 270080
URL: http://llvm.org/viewvc/llvm-project?rev=270080&view=rev
Log:
[X86][SSE2] Fixed shuffle of results in _mm_cmpnge_sd/_mm_cmpngt_sd tests
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=270080&r1=270079&r2=270080&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/sse2-intrinsics-fast-isel.ll (original)
+++ llvm/trunk/test/CodeGen/X86/sse2-intrinsics-fast-isel.ll Thu May 19 11:49:53 2016
@@ -770,16 +770,20 @@ define <2 x double> @test_mm_cmpnge_sd(<
; X32-LABEL: test_mm_cmpnge_sd:
; X32: # BB#0:
; X32-NEXT: cmpnlesd %xmm0, %xmm1
-; X32-NEXT: movaps %xmm1, %xmm0
+; X32-NEXT: movsd {{.*#+}} xmm0 = xmm1[0],xmm0[1]
; X32-NEXT: retl
;
; X64-LABEL: test_mm_cmpnge_sd:
; X64: # BB#0:
; X64-NEXT: cmpnlesd %xmm0, %xmm1
-; X64-NEXT: movaps %xmm1, %xmm0
+; X64-NEXT: movsd {{.*#+}} xmm0 = xmm1[0],xmm0[1]
; X64-NEXT: retq
- %res = call <2 x double> @llvm.x86.sse2.cmp.sd(<2 x double> %a1, <2 x double> %a0, i8 6)
- ret <2 x double> %res
+ %cmp = call <2 x double> @llvm.x86.sse2.cmp.sd(<2 x double> %a1, <2 x double> %a0, i8 6)
+ %ext0 = extractelement <2 x double> %cmp, i32 0
+ %ins0 = insertelement <2 x double> undef, double %ext0, i32 0
+ %ext1 = extractelement <2 x double> %a0, i32 1
+ %ins1 = insertelement <2 x double> %ins0, double %ext1, i32 1
+ ret <2 x double> %ins1
}
define <2 x double> @test_mm_cmpngt_pd(<2 x double> %a0, <2 x double> %a1) nounwind {
@@ -802,16 +806,20 @@ define <2 x double> @test_mm_cmpngt_sd(<
; X32-LABEL: test_mm_cmpngt_sd:
; X32: # BB#0:
; X32-NEXT: cmpnltsd %xmm0, %xmm1
-; X32-NEXT: movaps %xmm1, %xmm0
+; X32-NEXT: movsd {{.*#+}} xmm0 = xmm1[0],xmm0[1]
; X32-NEXT: retl
;
; X64-LABEL: test_mm_cmpngt_sd:
; X64: # BB#0:
; X64-NEXT: cmpnltsd %xmm0, %xmm1
-; X64-NEXT: movaps %xmm1, %xmm0
+; X64-NEXT: movsd {{.*#+}} xmm0 = xmm1[0],xmm0[1]
; X64-NEXT: retq
- %res = call <2 x double> @llvm.x86.sse2.cmp.sd(<2 x double> %a1, <2 x double> %a0, i8 5)
- ret <2 x double> %res
+ %cmp = call <2 x double> @llvm.x86.sse2.cmp.sd(<2 x double> %a1, <2 x double> %a0, i8 5)
+ %ext0 = extractelement <2 x double> %cmp, i32 0
+ %ins0 = insertelement <2 x double> undef, double %ext0, i32 0
+ %ext1 = extractelement <2 x double> %a0, i32 1
+ %ins1 = insertelement <2 x double> %ins0, double %ext1, i32 1
+ ret <2 x double> %ins1
}
define <2 x double> @test_mm_cmpnle_pd(<2 x double> %a0, <2 x double> %a1) nounwind {
More information about the llvm-commits
mailing list