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