1; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -relocation-model=pic -frame-pointer=all -mcpu=cortex-a8 2 3; rdar://9117613 4 5%struct.mo = type { i32, ptr } 6%struct.mo_pops = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr } 7%struct.ui = type { ptr, ptr, i32, ptr, ptr, i64, ptr, ptr, ptr } 8 9 10define internal fastcc i32 @t(ptr %vp, i32 %withfsize, i64 %filesize) nounwind { 11entry: 12 br i1 undef, label %bb1, label %bb 13 14bb: ; preds = %entry 15 unreachable 16 17bb1: ; preds = %entry 18 %0 = call ptr @vn_pp_to_ui(ptr undef) nounwind 19 call void @llvm.memset.p0.i32(ptr align 4 undef, i8 0, i32 40, i1 false) 20 store ptr undef, ptr %0, align 4 21 %1 = getelementptr inbounds %struct.ui, ptr %0, i32 0, i32 5 22 %2 = load i64, ptr %1, align 4 23 %3 = call i32 @mo_create_nnm(ptr undef, i64 %2, ptr undef) nounwind 24 br i1 undef, label %bb3, label %bb2 25 26bb2: ; preds = %bb1 27 unreachable 28 29bb3: ; preds = %bb1 30 br i1 undef, label %bb4, label %bb6 31 32bb4: ; preds = %bb3 33 %4 = call i32 @vn_size(ptr %vp, ptr %1, ptr undef) nounwind 34 unreachable 35 36bb6: ; preds = %bb3 37 ret i32 0 38} 39 40declare ptr @vn_pp_to_ui(ptr) 41 42declare void @llvm.memset.p0.i32(ptr nocapture, i8, i32, i1) nounwind 43 44declare i32 @mo_create_nnm(ptr, i64, ptr) 45 46declare i32 @vn_size(ptr, ptr, ptr) 47