1 ; RUN: llvm-as < %s | llc -mcpu=yonah -relocation-model=static | grep movaps | count 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"
8 @G = external global { float,float,float,float}, align 16
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
18 define %f4 @test2() nounwind {
19 %Wp = getelementptr { float,float,float,float}* @G, i32 0, i32 0
20 %Xp = getelementptr { float,float,float,float}* @G, i32 0, i32 1
21 %Yp = getelementptr { float,float,float,float}* @G, i32 0, i32 2
22 %Zp = getelementptr { float,float,float,float}* @G, i32 0, i32 3
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