blob: d919cf49fd321a4d0b7c93c30dd2a4810dd70bd5 [file] [log] [blame]
Devang Patelbd4e13d2008-03-04 21:15:15 +00001; RUN: llvm-as < %s | opt -inline -sretpromotion -disable-output
2 %struct.Benchmark = type { i32 (...)** }
3 %struct.Complex = type { double, double }
4 %struct.ComplexBenchmark = type { %struct.Benchmark }
5
6define void @_Zml7ComplexS_(%struct.Complex* sret %agg.result, double %a.0, double %a.1, double %b.0, double %b.1) nounwind {
7entry:
8 ret void
9}
10
11define void @_ZNK16ComplexBenchmark9oop_styleEv(%struct.ComplexBenchmark* %this) nounwind {
12entry:
13 %tmp = alloca %struct.Complex ; <%struct.Complex*> [#uses=2]
14 br label %bb31
15
16bb: ; preds = %bb31
17 call void @_Zml7ComplexS_( %struct.Complex* sret %tmp, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00 ) nounwind
18 %tmp21 = getelementptr %struct.Complex* %tmp, i32 0, i32 1 ; <double*> [#uses=0]
19 br label %bb31
20
21bb31: ; preds = %bb, %entry
22 br i1 false, label %bb, label %return
23
24return: ; preds = %bb31
25 ret void
26}