1 ; RUN: llc -simplifycfg-require-and-preserve-domtree=1 < %s -mtriple=i386-pc-mingw32
3 define void @func() nounwind personality ptr @__gxx_personality_v0 {
5 %call = tail call ptr @malloc()
7 to label %bb1 unwind label %lpad
13 %exn.ptr = landingpad { ptr, i32 }
15 %exn = extractvalue { ptr, i32 } %exn.ptr, 0
16 %eh.selector = extractvalue { ptr, i32 } %exn.ptr, 1
17 %ehspec.fails = icmp slt i32 %eh.selector, 0
18 br i1 %ehspec.fails, label %ehspec.unexpected, label %cleanup
21 resume { ptr, i32 } %exn.ptr
24 tail call void @__cxa_call_unexpected(ptr %exn) noreturn nounwind
28 declare noalias ptr @malloc()
30 declare i32 @__gxx_personality_v0(...)
32 declare void @_Unwind_Resume_or_Rethrow(ptr)
34 declare void @__cxa_call_unexpected(ptr)