[llvm] r270501 - [X86][SSE] Updated (V)CVTDQ2PD(Y) and (V)CVTPS2PD(Y) fast-isel codegen to match D20528
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon May 23 15:17:36 PDT 2016
Author: rksimon
Date: Mon May 23 17:17:36 2016
New Revision: 270501
URL: http://llvm.org/viewvc/llvm-project?rev=270501&view=rev
Log:
[X86][SSE] Updated (V)CVTDQ2PD(Y) and (V)CVTPS2PD(Y) fast-isel codegen to match D20528
Modified:
llvm/trunk/test/CodeGen/X86/avx-intrinsics-fast-isel.ll
llvm/trunk/test/CodeGen/X86/sse2-intrinsics-fast-isel.ll
Modified: llvm/trunk/test/CodeGen/X86/avx-intrinsics-fast-isel.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/avx-intrinsics-fast-isel.ll?rev=270501&r1=270500&r2=270501&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/avx-intrinsics-fast-isel.ll (original)
+++ llvm/trunk/test/CodeGen/X86/avx-intrinsics-fast-isel.ll Mon May 23 17:17:36 2016
@@ -578,10 +578,9 @@ define <4 x double> @test_mm256_cvtepi32
; X64-NEXT: vcvtdq2pd %xmm0, %ymm0
; X64-NEXT: retq
%arg0 = bitcast <2 x i64> %a0 to <4 x i32>
- %res = call <4 x double> @llvm.x86.avx.cvtdq2.pd.256(<4 x i32> %arg0)
+ %res = sitofp <4 x i32> %arg0 to <4 x double>
ret <4 x double> %res
}
-declare <4 x double> @llvm.x86.avx.cvtdq2.pd.256(<4 x i32>) nounwind readnone
define <8 x float> @test_mm256_cvtepi32_ps(<4 x i64> %a0) nounwind {
; X32-LABEL: test_mm256_cvtepi32_ps:
@@ -660,10 +659,9 @@ define <4 x double> @test_mm256_cvtps_pd
; X64: # BB#0:
; X64-NEXT: vcvtps2pd %xmm0, %ymm0
; X64-NEXT: retq
- %res = call <4 x double> @llvm.x86.avx.cvt.ps2.pd.256(<4 x float> %a0)
+ %res = fpext <4 x float> %a0 to <4 x double>
ret <4 x double> %res
}
-declare <4 x double> @llvm.x86.avx.cvt.ps2.pd.256(<4 x float>) nounwind readnone
define <2 x i64> @test_mm256_cvttpd_epi32(<4 x double> %a0) nounwind {
; X32-LABEL: test_mm256_cvttpd_epi32:
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=270501&r1=270500&r2=270501&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/sse2-intrinsics-fast-isel.ll (original)
+++ llvm/trunk/test/CodeGen/X86/sse2-intrinsics-fast-isel.ll Mon May 23 17:17:36 2016
@@ -1067,10 +1067,10 @@ define <2 x double> @test_mm_cvtepi32_pd
; X64-NEXT: cvtdq2pd %xmm0, %xmm0
; X64-NEXT: retq
%arg0 = bitcast <2 x i64> %a0 to <4 x i32>
- %res = call <2 x double> @llvm.x86.sse2.cvtdq2pd(<4 x i32> %arg0)
+ %ext = shufflevector <4 x i32> %arg0, <4 x i32> %arg0, <2 x i32> <i32 0, i32 1>
+ %res = sitofp <2 x i32> %ext to <2 x double>
ret <2 x double> %res
}
-declare <2 x double> @llvm.x86.sse2.cvtdq2pd(<4 x i32>) nounwind readnone
define <4 x float> @test_mm_cvtepi32_ps(<2 x i64> %a0) nounwind {
; X32-LABEL: test_mm_cvtepi32_ps:
@@ -1145,10 +1145,10 @@ define <2 x double> @test_mm_cvtps_pd(<4
; X64: # BB#0:
; X64-NEXT: cvtps2pd %xmm0, %xmm0
; X64-NEXT: retq
- %res = call <2 x double> @llvm.x86.sse2.cvtps2pd(<4 x float> %a0)
+ %ext = shufflevector <4 x float> %a0, <4 x float> %a0, <2 x i32> <i32 0, i32 1>
+ %res = fpext <2 x float> %ext to <2 x double>
ret <2 x double> %res
}
-declare <2 x double> @llvm.x86.sse2.cvtps2pd(<4 x float>) nounwind readnone
define double @test_mm_cvtsd_f64(<2 x double> %a0) nounwind {
; X32-LABEL: test_mm_cvtsd_f64:
More information about the llvm-commits
mailing list