1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mcpu=yonah -relocation-model=static | FileCheck %s
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 {
14 ; CHECK-NEXT: movaps {{[0-9]+}}(%esp), %xmm0
16 %tmp = insertelement %f4 undef, float %W, i32 0
17 %tmp2 = insertelement %f4 %tmp, float %X, i32 1
18 %tmp4 = insertelement %f4 %tmp2, float %Y, i32 2
19 %tmp6 = insertelement %f4 %tmp4, float %Z, i32 3
23 define %f4 @test2() nounwind {
26 ; CHECK-NEXT: movaps _G, %xmm0
28 %Wp = getelementptr { float,float,float,float}, ptr @G, i32 0, i32 0
29 %Xp = getelementptr { float,float,float,float}, ptr @G, i32 0, i32 1
30 %Yp = getelementptr { float,float,float,float}, ptr @G, i32 0, i32 2
31 %Zp = getelementptr { float,float,float,float}, ptr @G, i32 0, i32 3
33 %W = load float, ptr %Wp
34 %X = load float, ptr %Xp
35 %Y = load float, ptr %Yp
36 %Z = load float, ptr %Zp
38 %tmp = insertelement %f4 undef, float %W, i32 0
39 %tmp2 = insertelement %f4 %tmp, float %X, i32 1
40 %tmp4 = insertelement %f4 %tmp2, float %Y, i32 2
41 %tmp6 = insertelement %f4 %tmp4, float %Z, i32 3