35 lines · plain
1; RUN: llc < %s | FileCheck %s2target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"3target triple = "i386-pc-windows-msvc"4 5declare void @throw()6 7define void @test1() personality ptr @__CxxFrameHandler3 {8 %e = alloca i8, align 49 invoke void @throw()10 to label %.noexc unwind label %catch.dispatch11 12.noexc:13 unreachable14 15catch.object.Exception:16 %cp = catchpad within %cs [ptr null, i32 0, ptr %e]17 catchret from %cp to label %catchhandler18 19catch.dispatch:20 %cs = catchswitch within none [label %catch.object.Exception] unwind to caller21 22catchhandler:23 call void @use(ptr %e)24 ret void25}26 27; CHECK-LABEL: $handlerMap$0$test1:28; CHECK: .long 029; CHECK-NEXT: .long 030; CHECK-NEXT: .long -2031 32declare void @use(ptr)33 34declare i32 @__CxxFrameHandler3(...)35