2009-09-09 07:54:48 +08:00
|
|
|
; RUN: llc < %s -march=x86 -mattr=+sse2 -o %t
|
2008-05-08 08:57:18 +08:00
|
|
|
; RUN: grep movss %t | count 1
|
2009-06-07 14:52:44 +08:00
|
|
|
; RUN: grep movq %t | count 1
|
2007-08-15 21:36:28 +08:00
|
|
|
; RUN: grep shufps %t | count 1
|
2006-04-22 14:19:11 +08:00
|
|
|
|
2008-04-05 08:30:36 +08:00
|
|
|
define <4 x float> @test(float %a, float %b, float %c) nounwind {
|
2008-02-21 15:42:26 +08: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 14:19:11 +08:00
|
|
|
}
|
2008-02-21 15:42:26 +08:00
|
|
|
|