From fc0a7021282a447f4ea2f60e2249da5cdca8d2c3 Mon Sep 17 00:00:00 2001 From: Bruno Cardoso Lopes Date: Wed, 17 Aug 2011 02:29:10 +0000 Subject: Now that we have a canonical way to handle 256-bit splats: vinsertf128 $1 + vpermilps $0, remove the old code that used to first do the splat in a 128-bit vector and then insert it into a larger one. This is better because the handling code gets simpler and also makes a better room for the upcoming vbroadcast! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137807 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/avx-splat.ll | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/CodeGen') diff --git a/test/CodeGen/X86/avx-splat.ll b/test/CodeGen/X86/avx-splat.ll index ca35b7f265..417d7b09c5 100644 --- a/test/CodeGen/X86/avx-splat.ll +++ b/test/CodeGen/X86/avx-splat.ll @@ -24,8 +24,8 @@ entry: } ; CHECK: vmovd -; CHECK-NEXT: movlhps ; CHECK-NEXT: vinsertf128 $1 +; CHECK-NEXT: vpermilps $0 define <4 x i64> @funcC(i64 %q) nounwind uwtable readnone ssp { entry: %vecinit.i = insertelement <4 x i64> undef, i64 %q, i32 0 @@ -35,8 +35,8 @@ entry: ret <4 x i64> %vecinit6.i } -; CHECK: vshufpd -; CHECK-NEXT: vinsertf128 $1 +; CHECK: vinsertf128 $1 +; CHECK-NEXT: vpermilps $0 define <4 x double> @funcD(double %q) nounwind uwtable readnone ssp { entry: %vecinit.i = insertelement <4 x double> undef, double %q, i32 0 @@ -78,8 +78,8 @@ __load_and_broadcast_32.exit1249: ; preds = %load.i1247, %for_ex ret <8 x float> %load_broadcast12281250 } -; CHECK: vpshufd $0 -; CHECK-NEXT: vinsertf128 $1 +; CHECK: vinsertf128 $1 +; CHECK-NEXT: vpermilps $0 define <8 x float> @funcF(i32* %ptr) nounwind { %val = load i32* %ptr, align 4 %ret6 = insertelement <8 x i32> undef, i32 %val, i32 6 -- cgit v1.2.3-70-g09d2