1 ; RUN: llc < %s | FileCheck %s
2 target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
3 target triple = "x86_64-pc-windows-msvc"
5 declare void @rt_init()
7 declare i32 @__CxxFrameHandler3(...)
9 define void @test1(ptr %fp, i64 %n) personality ptr @__CxxFrameHandler3 {
13 %.alloca8 = alloca i8, i64 %n
14 store volatile i8 0, ptr %t.ii
15 store volatile i8 0, ptr %.alloca8
16 invoke void @rt_init()
17 to label %try.cont unwind label %catch.switch
21 to label %exit unwind label %catch.switch
27 %cp = catchpad within %cs [ptr null, i32 0, ptr %t.i]
28 catchret from %cp to label %exit
31 %cs = catchswitch within none [label %catch.pad] unwind to caller
34 ; CHECK-LABEL: $handlerMap$0$test1:
37 ; CHECK-NEXT: .long 16
39 define void @test2(ptr %fp, i64 %n) personality ptr @__CxxFrameHandler3 {
42 %.alloca8 = alloca i8, i64 %n
43 store volatile i8 0, ptr %.alloca8
44 invoke void @rt_init()
45 to label %try.cont unwind label %catch.switch
49 to label %exit unwind label %catch.switch
55 %cp = catchpad within %cs [ptr null, i32 0, ptr %t.i]
56 catchret from %cp to label %exit
59 %cs = catchswitch within none [label %catch.pad] unwind to caller
62 ; CHECK-LABEL: $handlerMap$0$test2:
65 ; CHECK-NEXT: .long 16