blob: 0713d956ee448facc560094782b9add7bf41dffd [file] [log] [blame]
Dan Gohman0a063102009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86 -mattr=+sse2 -o %t
Evan Cheng40ee6e52008-05-08 00:57:18 +00002; RUN: grep movss %t | count 1
Eli Friedmane6bb1e52009-06-07 06:52:44 +00003; RUN: grep movq %t | count 1
Dan Gohman8c89a502007-08-15 13:36:28 +00004; RUN: grep shufps %t | count 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005
Evan Chengbf8b2c52008-04-05 00:30:36 +00006define <4 x float> @test(float %a, float %b, float %c) nounwind {
Tanya Lattner632e88a2008-02-21 07:42:26 +00007 %tmp = insertelement <4 x float> zeroinitializer, float %a, i32 1 ; <<4 x float>> [#uses=1]
8 %tmp8 = insertelement <4 x float> %tmp, float %b, i32 2 ; <<4 x float>> [#uses=1]
9 %tmp10 = insertelement <4 x float> %tmp8, float %c, i32 3 ; <<4 x float>> [#uses=1]
10 ret <4 x float> %tmp10
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011}
Tanya Lattner632e88a2008-02-21 07:42:26 +000012