1 ; RUN: llc -mtriple aarch64-unknown-windows-msvc -filetype asm -o /dev/null %s
3 declare dllimport void @f() local_unnamed_addr
5 declare dso_local i32 @__C_specific_handler(...)
7 define hidden swiftcc void @g() unnamed_addr personality i8* bitcast (i32 (...)* @__C_specific_handler to i8*) {
9 invoke void @f() to label %__try.cont unwind label %catch.dispatch
11 catch.dispatch: ; preds = %entry
12 %0 = catchswitch within none [label %__except] unwind to caller
15 %1 = catchpad within %0 [i8* null] ; preds = %catch.dispatch
16 catchret from %1 to label %__try.cont
18 __try.cont: ; preds = %__except, %entry
22 define hidden fastcc void @h() unnamed_addr personality i8* bitcast (i32 (...)* @__C_specific_handler to i8*) {
24 invoke void @f() to label %__try.cont unwind label %catch.dispatch
26 catch.dispatch: ; preds = %entry
27 %0 = catchswitch within none [label %__except] unwind to caller
29 __except: ; preds = %catch.dispatch
30 %1 = catchpad within %0 [i8* null]
31 catchret from %1 to label %__try.cont
33 __try.cont: ; preds = %__except, %entry