1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s | FileCheck %s 2*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32" 3*9880d681SAndroid Build Coastguard Workertarget triple = "i386-pc-windows-msvc" 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Workerdeclare void @throw() 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Workerdefine void @test1() personality i32 (...)* @__CxxFrameHandler3 { 8*9880d681SAndroid Build Coastguard Worker %e = alloca i8, align 4 9*9880d681SAndroid Build Coastguard Worker invoke void @throw() 10*9880d681SAndroid Build Coastguard Worker to label %.noexc unwind label %catch.dispatch 11*9880d681SAndroid Build Coastguard Worker 12*9880d681SAndroid Build Coastguard Worker.noexc: 13*9880d681SAndroid Build Coastguard Worker unreachable 14*9880d681SAndroid Build Coastguard Worker 15*9880d681SAndroid Build Coastguard Workercatch.object.Exception: 16*9880d681SAndroid Build Coastguard Worker %cp = catchpad within %cs [i8* null, i32 0, i8* %e] 17*9880d681SAndroid Build Coastguard Worker catchret from %cp to label %catchhandler 18*9880d681SAndroid Build Coastguard Worker 19*9880d681SAndroid Build Coastguard Workercatch.dispatch: 20*9880d681SAndroid Build Coastguard Worker %cs = catchswitch within none [label %catch.object.Exception] unwind to caller 21*9880d681SAndroid Build Coastguard Worker 22*9880d681SAndroid Build Coastguard Workercatchhandler: 23*9880d681SAndroid Build Coastguard Worker call void @use(i8* %e) 24*9880d681SAndroid Build Coastguard Worker ret void 25*9880d681SAndroid Build Coastguard Worker} 26*9880d681SAndroid Build Coastguard Worker 27*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: $handlerMap$0$test1: 28*9880d681SAndroid Build Coastguard Worker; CHECK: .long 0 29*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: .long 0 30*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: .long -20 31*9880d681SAndroid Build Coastguard Worker 32*9880d681SAndroid Build Coastguard Workerdeclare void @use(i8*) 33*9880d681SAndroid Build Coastguard Worker 34*9880d681SAndroid Build Coastguard Workerdeclare i32 @__CxxFrameHandler3(...) 35