1 ; RUN: llc < %s -asm-verbose=false -O3 -relocation-model=pic -frame-pointer=all -mtriple=thumbv7-apple-darwin -mcpu=cortex-a8 -post-RA-scheduler
4 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:64:64-v128:128:128-a0:0:64"
5 target triple = "armv7-apple-darwin9"
7 %struct.Hosp = type { i32, i32, i32, %struct.List, %struct.List, %struct.List, %struct.List }
8 %struct.List = type { ptr, ptr, ptr }
9 %struct.Patient = type { i32, i32, i32, ptr }
10 %struct.Village = type { [4 x ptr], ptr, %struct.List, %struct.Hosp, i32, i32 }
12 define ptr @alloc_tree(i32 %level, i32 %label, ptr %back, i1 %p) nounwind {
14 br i1 %p, label %bb8, label %bb1
17 %malloccall = tail call ptr @malloc(i32 ptrtoint (ptr getelementptr (%struct.Village, ptr null, i32 1) to i32))
18 %exp2 = call double @ldexp(double 1.000000e+00, i32 %level) nounwind ; <double> [#uses=1]
19 %.c = fptosi double %exp2 to i32 ; <i32> [#uses=1]
20 store i32 %.c, ptr null
21 %0 = getelementptr %struct.Village, ptr %malloccall, i32 0, i32 3, i32 6, i32 0 ; <ptr> [#uses=1]
22 store ptr null, ptr %0
23 %1 = getelementptr %struct.Village, ptr %malloccall, i32 0, i32 3, i32 6, i32 2 ; <ptr> [#uses=1]
24 store ptr null, ptr %1
31 declare double @ldexp(double, i32)
32 declare noalias ptr @malloc(i32)