Add a vector shuffle test case
[oota-llvm.git] / test / CodeGen / X86 / vec_shuffle.ll
1 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep shufps
2
3 void %test_v4sf(<4 x float>* %P, float %X, float %Y) {
4         %tmp = insertelement <4 x float> zeroinitializer, float %X, uint 0
5         %tmp2 = insertelement <4 x float> %tmp, float %X, uint 1
6         %tmp4 = insertelement <4 x float> %tmp2, float %Y, uint 2
7         %tmp6 = insertelement <4 x float> %tmp4, float %Y, uint 3
8         store <4 x float> %tmp6, <4 x float>* %P
9         ret void
10 }