2009-09-08 23:54:48 +00:00
|
|
|
; RUN: llc < %s -march=x86 -mattr=+sse2 -o %t
|
2008-05-08 00:57:18 +00:00
|
|
|
; RUN: grep movss %t | count 1
|
2009-06-07 06:52:44 +00:00
|
|
|
; RUN: grep movq %t | count 1
|
2007-08-15 13:36:28 +00:00
|
|
|
; RUN: grep shufps %t | count 1
|
2006-04-22 06:19:11 +00:00
|
|
|
|
2008-04-05 00:30:36 +00:00
|
|
|
define <4 x float> @test(float %a, float %b, float %c) nounwind {
|
2008-02-21 07:42:26 +00:00
|
|
|
%tmp = insertelement <4 x float> zeroinitializer, float %a, i32 1 ; <<4 x float>> [#uses=1]
|
|
|
|
%tmp8 = insertelement <4 x float> %tmp, float %b, i32 2 ; <<4 x float>> [#uses=1]
|
|
|
|
%tmp10 = insertelement <4 x float> %tmp8, float %c, i32 3 ; <<4 x float>> [#uses=1]
|
|
|
|
ret <4 x float> %tmp10
|
2006-04-22 06:19:11 +00:00
|
|
|
}
|
2008-02-21 07:42:26 +00:00
|
|
|
|