1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=x86_64-apple-darwin10 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker; rdar://7247745 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Worker%struct._lck_mtx_ = type { %union.anon } 6*9880d681SAndroid Build Coastguard Worker%struct._lck_rw_t_internal_ = type <{ i16, i8, i8, i32, i32, i32 }> 7*9880d681SAndroid Build Coastguard Worker%struct.anon = type { i64, i64, [2 x i8], i8, i8, i32 } 8*9880d681SAndroid Build Coastguard Worker%struct.memory_object = type { i32, i32, %struct.memory_object_pager_ops* } 9*9880d681SAndroid Build Coastguard Worker%struct.memory_object_control = type { i32, i32, %struct.vm_object* } 10*9880d681SAndroid Build Coastguard Worker%struct.memory_object_pager_ops = type { void (%struct.memory_object*)*, void (%struct.memory_object*)*, i32 (%struct.memory_object*, %struct.memory_object_control*, i32)*, i32 (%struct.memory_object*)*, i32 (%struct.memory_object*, i64, i32, i32, i32*)*, i32 (%struct.memory_object*, i64, i32, i64*, i32*, i32, i32, i32)*, i32 (%struct.memory_object*, i64, i32)*, i32 (%struct.memory_object*, i64, i64, i32)*, i32 (%struct.memory_object*, i64, i64, i32)*, i32 (%struct.memory_object*, i32)*, i32 (%struct.memory_object*)*, i8* } 11*9880d681SAndroid Build Coastguard Worker%struct.queue_entry = type { %struct.queue_entry*, %struct.queue_entry* } 12*9880d681SAndroid Build Coastguard Worker%struct.upl = type { %struct._lck_mtx_, i32, i32, %struct.vm_object*, i64, i32, i64, %struct.vm_object*, i32, i8* } 13*9880d681SAndroid Build Coastguard Worker%struct.upl_page_info = type <{ i32, i8, [3 x i8] }> 14*9880d681SAndroid Build Coastguard Worker%struct.vm_object = type { %struct.queue_entry, %struct._lck_rw_t_internal_, i64, %struct.vm_page*, i32, i32, i32, i32, %struct.vm_object*, %struct.vm_object*, i64, %struct.memory_object*, i64, %struct.memory_object_control*, i32, i16, i16, [2 x i8], i8, i8, %struct.queue_entry, %struct.queue_entry, i64, i32, i32, i32, i8*, i64, i8, i8, [2 x i8], %struct.queue_entry } 15*9880d681SAndroid Build Coastguard Worker%struct.vm_page = type { %struct.queue_entry, %struct.queue_entry, %struct.vm_page*, %struct.vm_object*, i64, [2 x i8], i8, i8, i32, i8, i8, i8, i8, i32 } 16*9880d681SAndroid Build Coastguard Worker%union.anon = type { %struct.anon } 17*9880d681SAndroid Build Coastguard Worker 18*9880d681SAndroid Build Coastguard Workerdeclare i64 @OSAddAtomic64(i64, i64*) noredzone noimplicitfloat 19*9880d681SAndroid Build Coastguard Worker 20*9880d681SAndroid Build Coastguard Workerdefine i32 @upl_commit_range(%struct.upl* %upl, i32 %offset, i32 %size, i32 %flags, %struct.upl_page_info* %page_list, i32 %count, i32* nocapture %empty) nounwind noredzone noimplicitfloat { 21*9880d681SAndroid Build Coastguard Workerentry: 22*9880d681SAndroid Build Coastguard Worker br i1 undef, label %if.then, label %if.end 23*9880d681SAndroid Build Coastguard Worker 24*9880d681SAndroid Build Coastguard Workerif.end: ; preds = %entry 25*9880d681SAndroid Build Coastguard Worker br i1 undef, label %if.end143, label %if.then136 26*9880d681SAndroid Build Coastguard Worker 27*9880d681SAndroid Build Coastguard Workerif.then136: ; preds = %if.end 28*9880d681SAndroid Build Coastguard Worker unreachable 29*9880d681SAndroid Build Coastguard Worker 30*9880d681SAndroid Build Coastguard Workerif.end143: ; preds = %if.end 31*9880d681SAndroid Build Coastguard Worker br i1 undef, label %if.else155, label %if.then153 32*9880d681SAndroid Build Coastguard Worker 33*9880d681SAndroid Build Coastguard Workerif.then153: ; preds = %if.end143 34*9880d681SAndroid Build Coastguard Worker br label %while.cond 35*9880d681SAndroid Build Coastguard Worker 36*9880d681SAndroid Build Coastguard Workerif.else155: ; preds = %if.end143 37*9880d681SAndroid Build Coastguard Worker unreachable 38*9880d681SAndroid Build Coastguard Worker 39*9880d681SAndroid Build Coastguard Workerwhile.cond: ; preds = %if.end1039, %if.then153 40*9880d681SAndroid Build Coastguard Worker br i1 undef, label %if.then1138, label %while.body 41*9880d681SAndroid Build Coastguard Worker 42*9880d681SAndroid Build Coastguard Workerwhile.body: ; preds = %while.cond 43*9880d681SAndroid Build Coastguard Worker br i1 undef, label %if.end260, label %if.then217 44*9880d681SAndroid Build Coastguard Worker 45*9880d681SAndroid Build Coastguard Workerif.then217: ; preds = %while.body 46*9880d681SAndroid Build Coastguard Worker br i1 undef, label %if.end260, label %if.then230 47*9880d681SAndroid Build Coastguard Worker 48*9880d681SAndroid Build Coastguard Workerif.then230: ; preds = %if.then217 49*9880d681SAndroid Build Coastguard Worker br i1 undef, label %if.then246, label %if.end260 50*9880d681SAndroid Build Coastguard Worker 51*9880d681SAndroid Build Coastguard Workerif.then246: ; preds = %if.then230 52*9880d681SAndroid Build Coastguard Worker br label %if.end260 53*9880d681SAndroid Build Coastguard Worker 54*9880d681SAndroid Build Coastguard Workerif.end260: ; preds = %if.then246, %if.then230, %if.then217, %while.body 55*9880d681SAndroid Build Coastguard Worker br i1 undef, label %if.end296, label %if.then266 56*9880d681SAndroid Build Coastguard Worker 57*9880d681SAndroid Build Coastguard Workerif.then266: ; preds = %if.end260 58*9880d681SAndroid Build Coastguard Worker unreachable 59*9880d681SAndroid Build Coastguard Worker 60*9880d681SAndroid Build Coastguard Workerif.end296: ; preds = %if.end260 61*9880d681SAndroid Build Coastguard Worker br i1 undef, label %if.end1039, label %if.end306 62*9880d681SAndroid Build Coastguard Worker 63*9880d681SAndroid Build Coastguard Workerif.end306: ; preds = %if.end296 64*9880d681SAndroid Build Coastguard Worker br i1 undef, label %if.end796, label %if.then616 65*9880d681SAndroid Build Coastguard Worker 66*9880d681SAndroid Build Coastguard Workerif.then616: ; preds = %if.end306 67*9880d681SAndroid Build Coastguard Worker br i1 undef, label %commit_next_page, label %do.body716 68*9880d681SAndroid Build Coastguard Worker 69*9880d681SAndroid Build Coastguard Workerdo.body716: ; preds = %if.then616 70*9880d681SAndroid Build Coastguard Worker %call721 = call i64 @OSAddAtomic64(i64 1, i64* undef) nounwind noredzone noimplicitfloat ; <i64> [#uses=0] 71*9880d681SAndroid Build Coastguard Worker call void asm sideeffect "movq\090x0($0),%rdi\0A\09movq\090x8($0),%rsi\0A\09.section __DATA, __data\0A\09.globl __dtrace_probeDOLLAR${:uid}4794___vminfo____pgrec\0A\09__dtrace_probeDOLLAR${:uid}4794___vminfo____pgrec:.quad 1f\0A\09.text\0A\091:nop\0A\09nop\0A\09nop\0A\09", "r,~{memory},~{di},~{si},~{dirflag},~{fpsr},~{flags}"(i64* undef) nounwind 72*9880d681SAndroid Build Coastguard Worker br label %commit_next_page 73*9880d681SAndroid Build Coastguard Worker 74*9880d681SAndroid Build Coastguard Workerif.end796: ; preds = %if.end306 75*9880d681SAndroid Build Coastguard Worker unreachable 76*9880d681SAndroid Build Coastguard Worker 77*9880d681SAndroid Build Coastguard Workercommit_next_page: ; preds = %do.body716, %if.then616 78*9880d681SAndroid Build Coastguard Worker br i1 undef, label %if.end1039, label %if.then1034 79*9880d681SAndroid Build Coastguard Worker 80*9880d681SAndroid Build Coastguard Workerif.then1034: ; preds = %commit_next_page 81*9880d681SAndroid Build Coastguard Worker br label %if.end1039 82*9880d681SAndroid Build Coastguard Worker 83*9880d681SAndroid Build Coastguard Workerif.end1039: ; preds = %if.then1034, %commit_next_page, %if.end296 84*9880d681SAndroid Build Coastguard Worker br label %while.cond 85*9880d681SAndroid Build Coastguard Worker 86*9880d681SAndroid Build Coastguard Workerif.then1138: ; preds = %while.cond 87*9880d681SAndroid Build Coastguard Worker unreachable 88*9880d681SAndroid Build Coastguard Worker 89*9880d681SAndroid Build Coastguard Workerif.then: ; preds = %entry 90*9880d681SAndroid Build Coastguard Worker ret i32 4 91*9880d681SAndroid Build Coastguard Worker} 92