1; RUN: llc < %s | FileCheck %s
2target 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 i32 (...)* @__CxxFrameHandler3 {
8  %e = alloca i8, align 4
9  invoke void @throw()
10          to label %.noexc unwind label %catch.dispatch
11
12.noexc:
13  unreachable
14
15catch.object.Exception:
16  %cp = catchpad within %cs [i8* null, i32 0, i8* %e]
17  catchret from %cp to label %catchhandler
18
19catch.dispatch:
20  %cs = catchswitch within none [label %catch.object.Exception] unwind to caller
21
22catchhandler:
23  call void @use(i8* %e)
24  ret void
25}
26
27; CHECK-LABEL: $handlerMap$0$test1:
28; CHECK:      .long 0
29; CHECK-NEXT: .long 0
30; CHECK-NEXT: .long -20
31
32declare void @use(i8*)
33
34declare i32 @__CxxFrameHandler3(...)
35