From 4cd1955e6599f8c33c69aeaa35278b2bd71cd972 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Fri, 15 Sep 2017 23:53:43 +0000 Subject: [PATCH] [X86] Remove usages of vperm2f intrinsics from fast isel tests to match what clang generates after r313418. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313424 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/avx-intrinsics-fast-isel.ll | 6 +++--- test/CodeGen/X86/avx2-intrinsics-fast-isel.ll | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/CodeGen/X86/avx-intrinsics-fast-isel.ll b/test/CodeGen/X86/avx-intrinsics-fast-isel.ll index 2f33cf78de1..77dd9b2e6da 100644 --- a/test/CodeGen/X86/avx-intrinsics-fast-isel.ll +++ b/test/CodeGen/X86/avx-intrinsics-fast-isel.ll @@ -1695,7 +1695,7 @@ define <4 x double> @test_mm256_permute2f128_pd(<4 x double> %a0, <4 x double> % ; X64: # BB#0: ; X64-NEXT: vperm2f128 {{.*#+}} ymm0 = zero,zero,ymm1[0,1] ; X64-NEXT: retq - %res = call <4 x double> @llvm.x86.avx.vperm2f128.pd.256(<4 x double> %a0, <4 x double> %a1, i8 44) + %res = shufflevector <4 x double> zeroinitializer, <4 x double> %a1, <4 x i32> ret <4 x double> %res } declare <4 x double> @llvm.x86.avx.vperm2f128.pd.256(<4 x double>, <4 x double>, i8) nounwind readnone @@ -1711,7 +1711,7 @@ define <8 x float> @test_mm256_permute2f128_ps(<8 x float> %a0, <8 x float> %a1) ; X64: # BB#0: ; X64-NEXT: vmovaps %ymm1, %ymm0 ; X64-NEXT: retq - %res = call <8 x float> @llvm.x86.avx.vperm2f128.ps.256(<8 x float> %a0, <8 x float> %a1, i8 50) + %res = shufflevector <8 x float> %a1, <8 x float> %a1, <8 x i32> ret <8 x float> %res } declare <8 x float> @llvm.x86.avx.vperm2f128.ps.256(<8 x float>, <8 x float>, i8) nounwind readnone @@ -1728,7 +1728,7 @@ define <4 x i64> @test_mm256_permute2f128_si256(<4 x i64> %a0, <4 x i64> %a1) no ; X64-NEXT: retq %1 = bitcast <4 x i64> %a0 to <8 x i32> %2 = bitcast <4 x i64> %a1 to <8 x i32> - %res = call <8 x i32> @llvm.x86.avx.vperm2f128.si.256(<8 x i32> %1, <8 x i32> %2, i8 35) + %res = shufflevector <8 x i32> %2, <8 x i32> %2, <8 x i32> %bc = bitcast <8 x i32> %res to <4 x i64> ret <4 x i64> %bc } diff --git a/test/CodeGen/X86/avx2-intrinsics-fast-isel.ll b/test/CodeGen/X86/avx2-intrinsics-fast-isel.ll index 837ae28f051..5ce9ef73597 100644 --- a/test/CodeGen/X86/avx2-intrinsics-fast-isel.ll +++ b/test/CodeGen/X86/avx2-intrinsics-fast-isel.ll @@ -2449,7 +2449,7 @@ define <4 x i64> @test_mm256_permute2x128_si256(<4 x i64> %a0, <4 x i64> %a1) { ; X64: # BB#0: ; X64-NEXT: vperm2f128 {{.*#+}} ymm0 = ymm0[2,3],ymm1[2,3] ; X64-NEXT: retq - %res = call <4 x i64> @llvm.x86.avx2.vperm2i128(<4 x i64> %a0, <4 x i64> %a1, i8 49) + %res = shufflevector <4 x i64> %a0, <4 x i64> %a1, <4 x i32> ret <4 x i64> %res } declare <4 x i64> @llvm.x86.avx2.vperm2i128(<4 x i64>, <4 x i64>, i8) nounwind readonly -- 2.40.0