blob: 1eeedf184dd03e4c4c732571d0104f57563a8d15 [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
Evan Chengbf8b2c52008-04-05 00:30:36 +00005define <4 x float> @test(float %a, float %b, float %c) nounwind {
Tanya Lattner632e88a2008-02-21 07:42:26 +00006 %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