Use movq to move low half of XMM register and zero-extend the rest.
[oota-llvm.git] / test / CodeGen / X86 / vec_set-E.ll
1 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movq
2
3 define i32 @t(float %X) nounwind  {
4         %tmp11 = insertelement <4 x float> undef, float %X, i32 0
5         %tmp12 = insertelement <4 x float> %tmp11, float %X, i32 1
6         %tmp27 = insertelement <4 x float> %tmp12, float 0.000000e+00, i32 2
7         %tmp28 = insertelement <4 x float> %tmp27, float 0.000000e+00, i32 3
8         store <4 x float> %tmp28, <4 x float>* null, align 16
9         ret i32 0
10 }