blob: a28c54491f62bf36782460689e60170ddfae2a2f [file] [log] [blame]
Tanya Lattner632e88a2008-02-21 07:42:26 +00001; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -o %t -f
Dan Gohman8c89a502007-08-15 13:36:28 +00002; RUN: grep unpcklps %t | count 1
3; RUN: grep shufps %t | count 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004
Tanya Lattner632e88a2008-02-21 07:42:26 +00005define <4 x float> @test(float %a, float %b, float %c) {
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
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010}
Tanya Lattner632e88a2008-02-21 07:42:26 +000011