1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=thumbv7-apple-darwin9 -mcpu=cortex-a8 2*9880d681SAndroid Build Coastguard Worker; rdar://7117307 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Worker %struct.Hosp = type { i32, i32, i32, %struct.List, %struct.List, %struct.List, %struct.List } 5*9880d681SAndroid Build Coastguard Worker %struct.List = type { %struct.List*, %struct.Patient*, %struct.List* } 6*9880d681SAndroid Build Coastguard Worker %struct.Patient = type { i32, i32, i32, %struct.Village* } 7*9880d681SAndroid Build Coastguard Worker %struct.Village = type { [4 x %struct.Village*], %struct.Village*, %struct.List, %struct.Hosp, i32, i32 } 8*9880d681SAndroid Build Coastguard Worker 9*9880d681SAndroid Build Coastguard Workerdefine %struct.List* @sim(%struct.Village* %village) nounwind { 10*9880d681SAndroid Build Coastguard Workerentry: 11*9880d681SAndroid Build Coastguard Worker br i1 undef, label %bb14, label %bb3.preheader 12*9880d681SAndroid Build Coastguard Worker 13*9880d681SAndroid Build Coastguard Workerbb3.preheader: ; preds = %entry 14*9880d681SAndroid Build Coastguard Worker br label %bb5 15*9880d681SAndroid Build Coastguard Worker 16*9880d681SAndroid Build Coastguard Workerbb5: ; preds = %bb5, %bb3.preheader 17*9880d681SAndroid Build Coastguard Worker br i1 undef, label %bb11, label %bb5 18*9880d681SAndroid Build Coastguard Worker 19*9880d681SAndroid Build Coastguard Workerbb11: ; preds = %bb5 20*9880d681SAndroid Build Coastguard Worker %0 = fmul float undef, 0x41E0000000000000 ; <float> [#uses=1] 21*9880d681SAndroid Build Coastguard Worker %1 = fptosi float %0 to i32 ; <i32> [#uses=1] 22*9880d681SAndroid Build Coastguard Worker store i32 %1, i32* undef, align 4 23*9880d681SAndroid Build Coastguard Worker br i1 undef, label %generate_patient.exit, label %generate_patient.exit.thread 24*9880d681SAndroid Build Coastguard Worker 25*9880d681SAndroid Build Coastguard Workergenerate_patient.exit.thread: ; preds = %bb11 26*9880d681SAndroid Build Coastguard Worker ret %struct.List* null 27*9880d681SAndroid Build Coastguard Worker 28*9880d681SAndroid Build Coastguard Workergenerate_patient.exit: ; preds = %bb11 29*9880d681SAndroid Build Coastguard Worker br i1 undef, label %bb14, label %bb12 30*9880d681SAndroid Build Coastguard Worker 31*9880d681SAndroid Build Coastguard Workerbb12: ; preds = %generate_patient.exit 32*9880d681SAndroid Build Coastguard Worker br i1 undef, label %bb.i, label %bb1.i 33*9880d681SAndroid Build Coastguard Worker 34*9880d681SAndroid Build Coastguard Workerbb.i: ; preds = %bb12 35*9880d681SAndroid Build Coastguard Worker ret %struct.List* null 36*9880d681SAndroid Build Coastguard Worker 37*9880d681SAndroid Build Coastguard Workerbb1.i: ; preds = %bb12 38*9880d681SAndroid Build Coastguard Worker ret %struct.List* null 39*9880d681SAndroid Build Coastguard Worker 40*9880d681SAndroid Build Coastguard Workerbb14: ; preds = %generate_patient.exit, %entry 41*9880d681SAndroid Build Coastguard Worker ret %struct.List* undef 42*9880d681SAndroid Build Coastguard Worker} 43