1 ; RUN: llvm-as < %s | llc -march=x86 | grep {subl \$4, %esp}
3 target triple = "i686-pc-linux-gnu"
4 @str = internal constant [9 x i8] c"%f+%f*i\0A\00" ; <[9 x i8]*> [#uses=1]
8 %retval = alloca i32, align 4 ; <i32*> [#uses=1]
9 %tmp = alloca { double, double }, align 16 ; <{ double, double }*> [#uses=4]
10 %tmp1 = alloca { double, double }, align 16 ; <{ double, double }*> [#uses=4]
11 %tmp2 = alloca { double, double }, align 16 ; <{ double, double }*> [#uses=3]
12 %pi = alloca double, align 8 ; <double*> [#uses=2]
13 %z = alloca { double, double }, align 16 ; <{ double, double }*> [#uses=4]
14 %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
15 store double 0x400921FB54442D18, double* %pi
16 %tmp.upgrd.1 = load double* %pi ; <double> [#uses=1]
17 %real = getelementptr { double, double }* %tmp1, i64 0, i32 0 ; <double*> [#uses=1]
18 store double 0.000000e+00, double* %real
19 %real3 = getelementptr { double, double }* %tmp1, i64 0, i32 1 ; <double*> [#uses=1]
20 store double %tmp.upgrd.1, double* %real3
21 %tmp.upgrd.2 = getelementptr { double, double }* %tmp, i64 0, i32 0 ; <double*> [#uses=1]
22 %tmp4 = getelementptr { double, double }* %tmp1, i64 0, i32 0 ; <double*> [#uses=1]
23 %tmp5 = load double* %tmp4 ; <double> [#uses=1]
24 store double %tmp5, double* %tmp.upgrd.2
25 %tmp6 = getelementptr { double, double }* %tmp, i64 0, i32 1 ; <double*> [#uses=1]
26 %tmp7 = getelementptr { double, double }* %tmp1, i64 0, i32 1 ; <double*> [#uses=1]
27 %tmp8 = load double* %tmp7 ; <double> [#uses=1]
28 store double %tmp8, double* %tmp6
29 %tmp.upgrd.3 = bitcast { double, double }* %tmp to { i64, i64 }* ; <{ i64, i64 }*> [#uses=1]
30 %tmp.upgrd.4 = getelementptr { i64, i64 }* %tmp.upgrd.3, i64 0, i32 0 ; <i64*> [#uses=1]
31 %tmp.upgrd.5 = load i64* %tmp.upgrd.4 ; <i64> [#uses=1]
32 %tmp9 = bitcast { double, double }* %tmp to { i64, i64 }* ; <{ i64, i64 }*> [#uses=1]
33 %tmp10 = getelementptr { i64, i64 }* %tmp9, i64 0, i32 1 ; <i64*> [#uses=1]
34 %tmp11 = load i64* %tmp10 ; <i64> [#uses=1]
35 call void @cexp( { double, double }* sret %tmp2, i64 %tmp.upgrd.5, i64 %tmp11 )
36 %tmp12 = getelementptr { double, double }* %z, i64 0, i32 0 ; <double*> [#uses=1]
37 %tmp13 = getelementptr { double, double }* %tmp2, i64 0, i32 0 ; <double*> [#uses=1]
38 %tmp14 = load double* %tmp13 ; <double> [#uses=1]
39 store double %tmp14, double* %tmp12
40 %tmp15 = getelementptr { double, double }* %z, i64 0, i32 1 ; <double*> [#uses=1]
41 %tmp16 = getelementptr { double, double }* %tmp2, i64 0, i32 1 ; <double*> [#uses=1]
42 %tmp17 = load double* %tmp16 ; <double> [#uses=1]
43 store double %tmp17, double* %tmp15
44 %tmp18 = getelementptr { double, double }* %z, i64 0, i32 1 ; <double*> [#uses=1]
45 %tmp19 = load double* %tmp18 ; <double> [#uses=1]
46 %tmp20 = getelementptr { double, double }* %z, i64 0, i32 0 ; <double*> [#uses=1]
47 %tmp21 = load double* %tmp20 ; <double> [#uses=1]
48 %tmp.upgrd.6 = getelementptr [9 x i8]* @str, i32 0, i64 0 ; <i8*> [#uses=1]
49 %tmp.upgrd.7 = call i32 (i8*, ...)* @printf( i8* %tmp.upgrd.6, double %tmp21, double %tmp19 ) ; <i32> [#uses=0]
51 return: ; preds = %entry
52 %retval.upgrd.8 = load i32* %retval ; <i32> [#uses=1]
53 ret i32 %retval.upgrd.8
56 declare void @cexp({ double, double }* sret , i64, i64)
58 declare i32 @printf(i8*, ...)