blob: 73d75e63914d327d894742ece596a0199306c2a4 [file] [log] [blame]
Tanya Lattner632e88a2008-02-21 07:42:26 +00001; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002; RUN: not grep shufps
3
Tanya Lattner632e88a2008-02-21 07:42:26 +00004define void @test(<4 x float>* %res, <4 x float>* %A) {
5 %tmp1 = load <4 x float>* %A ; <<4 x float>> [#uses=1]
6 %tmp2 = shufflevector <4 x float> %tmp1, <4 x float> undef, <4 x i32> < i32 0, i32 5, i32 6, i32 7 > ; <<4 x float>> [#uses=1]
7 store <4 x float> %tmp2, <4 x float>* %res
8 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009}
Tanya Lattner632e88a2008-02-21 07:42:26 +000010