From: Evan Cheng Date: Fri, 8 Sep 2006 01:54:32 +0000 (+0000) Subject: Add a new test case for 'undef' shuffles. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e119691885ba1be5e372078c8d9654fb01c16b7f;p=oota-llvm.git Add a new test case for 'undef' shuffles. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30172 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/X86/vec_shuffle-8.ll b/test/CodeGen/X86/vec_shuffle-8.ll new file mode 100644 index 00000000000..449a3abd20e --- /dev/null +++ b/test/CodeGen/X86/vec_shuffle-8.ll @@ -0,0 +1,9 @@ +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 && +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not grep shufps + +void %test(<4 x float>* %res, <4 x float>* %A) { + %tmp1 = load <4 x float>* %A + %tmp2 = shufflevector <4 x float> %tmp1, <4 x float> undef, <4 x uint> < uint 0, uint 5, uint 6, uint 7 > + store <4 x float> %tmp2, <4 x float>* %res + ret void +}