1 ; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -relocation-model=pic -frame-pointer=all -mcpu=cortex-a8
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 }
10 define internal fastcc i32 @t(ptr %vp, i32 %withfsize, i64 %filesize) nounwind {
12 br i1 undef, label %bb1, label %bb
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
30 br i1 undef, label %bb4, label %bb6
33 %4 = call i32 @vn_size(ptr %vp, ptr %1, ptr undef) nounwind
40 declare ptr @vn_pp_to_ui(ptr)
42 declare void @llvm.memset.p0.i32(ptr nocapture, i8, i32, i1) nounwind
44 declare i32 @mo_create_nnm(ptr, i64, ptr)
46 declare i32 @vn_size(ptr, ptr, ptr)