1 ; RUN: llc -simplifycfg-require-and-preserve-domtree=1 < %s -verify-machineinstrs
3 ; <rdar://problem/9187612>
4 target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:64:64-v128:128:128-a0:0:32-n32"
5 target triple = "thumbv7-apple-darwin"
7 define void @func() unnamed_addr align 2 personality ptr @__gxx_personality_sj0 {
12 %tmp2 = phi i32 [ 0, %entry ], [ %add, %for.cond.backedge ]
13 %cmp = icmp ult i32 %tmp2, 14
14 br i1 %cmp, label %for.body, label %for.end
17 %add = add i32 %tmp2, 1
18 switch i32 %tmp2, label %sw.default [
29 to label %invoke.cont17 unwind label %lpad
33 to label %for.cond.backedge unwind label %lpad26
39 %exn = landingpad { ptr, i32 }
42 to label %eh.resume unwind label %terminate.lpad
45 %exn27 = landingpad { ptr, i32 }
48 to label %eh.resume unwind label %terminate.lpad
51 br label %for.cond.backedge
55 to label %call8.i.i.i.noexc unwind label %lpad44
61 %exn45 = landingpad { ptr, i32 }
64 to label %eh.resume unwind label %terminate.lpad
67 %exn.slot.0 = phi { ptr, i32 } [ %exn27, %lpad26 ], [ %exn, %lpad ], [ %exn45, %lpad44 ]
68 resume { ptr, i32 } %exn.slot.0
71 %exn51 = landingpad { ptr, i32 }
73 tail call void @_ZSt9terminatev() noreturn nounwind
79 declare i32 @__gxx_personality_sj0(...)
81 declare void @_Unwind_SjLj_Resume_or_Rethrow(ptr)
83 declare void @_ZSt9terminatev()
85 !0 = !{!"any pointer", !1}
86 !1 = !{!"omnipotent char", !2}
87 !2 = !{!"Simple C/C++ TBAA"}