55 lines · plain
1; RUN: llc < %s -mtriple=thumbv7-apple-darwin9 -mcpu=cortex-a82; rdar://71173073 4 %struct.Hosp = type { i32, i32, i32, %struct.List, %struct.List, %struct.List, %struct.List }5 %struct.List = type { ptr, ptr, ptr }6 %struct.Patient = type { i32, i32, i32, ptr }7 %struct.Village = type { [4 x ptr], ptr, %struct.List, %struct.Hosp, i32, i32 }8 9define ptr @sim(ptr %village) nounwind {10entry:11 br i1 undef, label %bb14, label %bb3.preheader12 13bb3.preheader: ; preds = %entry14 br label %bb515 16bb5: ; preds = %bb5, %bb3.preheader17 br i1 undef, label %bb11, label %bb518 19bb11: ; preds = %bb520 %0 = load i32, ptr undef, align 4 ; <i32> [#uses=1]21 %1 = xor i32 %0, 123459876 ; <i32> [#uses=1]22 %2 = sdiv i32 %1, 127773 ; <i32> [#uses=1]23 %3 = mul i32 %2, 2836 ; <i32> [#uses=1]24 %4 = sub i32 0, %3 ; <i32> [#uses=1]25 %5 = xor i32 %4, 123459876 ; <i32> [#uses=1]26 %idum_addr.0.i.i = select i1 undef, i32 undef, i32 %5 ; <i32> [#uses=1]27 %6 = sitofp i32 %idum_addr.0.i.i to double ; <double> [#uses=1]28 %7 = fmul double %6, 0x3E00000000200000 ; <double> [#uses=1]29 %8 = fptrunc double %7 to float ; <float> [#uses=2]30 %9 = fmul float %8, 0x41E0000000000000 ; <float> [#uses=1]31 %10 = fptosi float %9 to i32 ; <i32> [#uses=1]32 store i32 %10, ptr undef, align 433 %11 = fpext float %8 to double ; <double> [#uses=1]34 %12 = fcmp ogt double %11, 6.660000e-01 ; <i1> [#uses=1]35 br i1 %12, label %generate_patient.exit, label %generate_patient.exit.thread36 37generate_patient.exit.thread: ; preds = %bb1138 ret ptr null39 40generate_patient.exit: ; preds = %bb1141 br i1 undef, label %bb14, label %bb1242 43bb12: ; preds = %generate_patient.exit44 br i1 undef, label %bb.i, label %bb1.i45 46bb.i: ; preds = %bb1247 ret ptr null48 49bb1.i: ; preds = %bb1250 ret ptr null51 52bb14: ; preds = %generate_patient.exit, %entry53 ret ptr undef54}55