1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mcpu=yonah -relocation-model=static | grep movaps | count 2
4 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"
5 target triple = "i686-apple-darwin8"
9 @G = external global { float,float,float,float}, align 16
11 define %f4 @test1(float %W, float %X, float %Y, float %Z) nounwind {
12 %tmp = insertelement %f4 undef, float %W, i32 0
13 %tmp2 = insertelement %f4 %tmp, float %X, i32 1
14 %tmp4 = insertelement %f4 %tmp2, float %Y, i32 2
15 %tmp6 = insertelement %f4 %tmp4, float %Z, i32 3
19 define %f4 @test2() nounwind {
20 %Wp = getelementptr { float,float,float,float}, { float,float,float,float}* @G, i32 0, i32 0
21 %Xp = getelementptr { float,float,float,float}, { float,float,float,float}* @G, i32 0, i32 1
22 %Yp = getelementptr { float,float,float,float}, { float,float,float,float}* @G, i32 0, i32 2
23 %Zp = getelementptr { float,float,float,float}, { float,float,float,float}* @G, i32 0, i32 3
25 %W = load float, float* %Wp
26 %X = load float, float* %Xp
27 %Y = load float, float* %Yp
28 %Z = load float, float* %Zp
30 %tmp = insertelement %f4 undef, float %W, i32 0
31 %tmp2 = insertelement %f4 %tmp, float %X, i32 1
32 %tmp4 = insertelement %f4 %tmp2, float %Y, i32 2
33 %tmp6 = insertelement %f4 %tmp4, float %Z, i32 3