Favors pshufd over shufps when shuffling elements from one vector. pshufd is faster...
[oota-llvm.git] / test / CodeGen / X86 / vec_set-6.ll
1 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -o %t -f
2 ; RUN: grep unpcklps %t | count 1
3 ; RUN: grep shufps   %t | count 1
4
5 define <4 x float> @test(float %a, float %b, float %c) nounwind {
6         %tmp = insertelement <4 x float> zeroinitializer, float %a, i32 1               ; <<4 x float>> [#uses=1]
7         %tmp8 = insertelement <4 x float> %tmp, float %b, i32 2         ; <<4 x float>> [#uses=1]
8         %tmp10 = insertelement <4 x float> %tmp8, float %c, i32 3               ; <<4 x float>> [#uses=1]
9         ret <4 x float> %tmp10
10 }
11