From b00418af67b36dcd7d70a268ebba3480c1011348 Mon Sep 17 00:00:00 2001 From: Nadav Rotem Date: Sat, 29 Oct 2011 21:23:04 +0000 Subject: Add a new DAGCombine optimization for BUILD_VECTOR. If all of the inputs are zero/any_extended, create a new simple BV which can be further optimized by other BV optimizations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143297 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/2011-10-27-tstore.ll | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/CodeGen/X86/2011-10-27-tstore.ll (limited to 'test/CodeGen/X86/2011-10-27-tstore.ll') diff --git a/test/CodeGen/X86/2011-10-27-tstore.ll b/test/CodeGen/X86/2011-10-27-tstore.ll new file mode 100644 index 0000000000..016e02c3d5 --- /dev/null +++ b/test/CodeGen/X86/2011-10-27-tstore.ll @@ -0,0 +1,16 @@ +; RUN: llc < %s -march=x86-64 -mcpu=corei7 | FileCheck %s + +target triple = "x86_64-unknown-linux-gnu" + +;CHECK: ltstore +;CHECK: pshufd +;CHECK: pshufd +;CHECK: ret +define void @ltstore() { +entry: + %in = load <4 x i32>* undef + %j = shufflevector <4 x i32> %in, <4 x i32> undef, <2 x i32> + store <2 x i32> %j, <2 x i32>* undef + ret void +} + -- cgit v1.2.3