From 97136c922ec4b492584cb91c1fc1cdcb40983ecf Mon Sep 17 00:00:00 2001 From: Bruno Cardoso Lopes Date: Mon, 19 Sep 2011 23:36:50 +0000 Subject: Based on the small opt Zvi's patch was trying to achieve, eliminate 128-bit undef subvector insertion into a 256-bit vector git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140097 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/avx-vinsertf128.ll | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') diff --git a/test/CodeGen/X86/avx-vinsertf128.ll b/test/CodeGen/X86/avx-vinsertf128.ll index a6f2585..8813a7f 100644 --- a/test/CodeGen/X86/avx-vinsertf128.ll +++ b/test/CodeGen/X86/avx-vinsertf128.ll @@ -36,3 +36,11 @@ allocas: store <4 x i32> %blendAsInt.i503, <4 x i32>* undef, align 4 ret void } + +; CHECK: _C +; CHECK-NOT: vinsertf128 $1 +define <4 x i32> @C(<4 x i32> %v1) nounwind readonly { + %1 = shufflevector <4 x i32> %v1, <4 x i32> undef, <8 x i32> + %2 = shufflevector <8 x i32> %1, <8 x i32> undef, <4 x i32> + ret <4 x i32> %2 +} -- cgit v1.1