brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 21e96dd Raw
37 lines · plain
1; RUN: llc -mtriple aarch64-unknown-windows-msvc -filetype asm -o /dev/null %s2 3declare dllimport void @f() local_unnamed_addr4 5declare dso_local i32 @__C_specific_handler(...)6 7define hidden swiftcc void @g() unnamed_addr personality ptr @__C_specific_handler {8entry:9  invoke void @f() to label %__try.cont unwind label %catch.dispatch10 11catch.dispatch:                                   ; preds = %entry12  %0 = catchswitch within none [label %__except] unwind to caller13 14__except:15  %1 = catchpad within %0 [ptr null]              ; preds = %catch.dispatch16  catchret from %1 to label %__try.cont17 18__try.cont:                                       ; preds = %__except, %entry19  ret void20}21 22define hidden fastcc void @h() unnamed_addr personality ptr @__C_specific_handler {23entry:24  invoke void @f() to label %__try.cont unwind label %catch.dispatch25 26catch.dispatch:                                   ; preds = %entry27  %0 = catchswitch within none [label %__except] unwind to caller28 29__except:                                         ; preds = %catch.dispatch30  %1 = catchpad within %0 [ptr null]31  catchret from %1 to label %__try.cont32 33__try.cont:                                       ; preds = %__except, %entry34  ret void35}36 37