Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -mcpu=yonah -relocation-model=static | grep movaps | count 2
      2 
      3 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
      4 target triple = "i686-apple-darwin8"
      5 
      6 %f4 = type <4 x float>
      7 
      8 @G = external global { float,float,float,float}, align 16
      9 
     10 define %f4 @test1(float %W, float %X, float %Y, float %Z) nounwind {
     11         %tmp = insertelement %f4 undef, float %W, i32 0
     12         %tmp2 = insertelement %f4 %tmp, float %X, i32 1
     13         %tmp4 = insertelement %f4 %tmp2, float %Y, i32 2
     14         %tmp6 = insertelement %f4 %tmp4, float %Z, i32 3
     15 	ret %f4 %tmp6
     16 }
     17 
     18 define %f4 @test2() nounwind {
     19 	%Wp = getelementptr { float,float,float,float}, { float,float,float,float}* @G, i32 0, i32 0
     20 	%Xp = getelementptr { float,float,float,float}, { float,float,float,float}* @G, i32 0, i32 1
     21 	%Yp = getelementptr { float,float,float,float}, { float,float,float,float}* @G, i32 0, i32 2
     22 	%Zp = getelementptr { float,float,float,float}, { float,float,float,float}* @G, i32 0, i32 3
     23 	
     24 	%W = load float, float* %Wp
     25 	%X = load float, float* %Xp
     26 	%Y = load float, float* %Yp
     27 	%Z = load float, float* %Zp
     28 
     29         %tmp = insertelement %f4 undef, float %W, i32 0
     30         %tmp2 = insertelement %f4 %tmp, float %X, i32 1
     31         %tmp4 = insertelement %f4 %tmp2, float %Y, i32 2
     32         %tmp6 = insertelement %f4 %tmp4, float %Z, i32 3
     33 	ret %f4 %tmp6
     34 }
     35 
     36