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(void ()* %fp, i64 %n) personality i32 (...)* @__CxxFrameHandler3 {
13 %.alloca8 = alloca i8, i64 %n
14 store volatile i8 0, i8* %t.ii
15 store volatile i8 0, i8* %.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 [i8* null, i32 0, i8** %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(void ()* %fp, i64 %n) personality i32 (...)* @__CxxFrameHandler3 {
42 %.alloca8 = alloca i8, i64 %n
43 store volatile i8 0, i8* %.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 [i8* null, i32 0, i128* %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: