1 ; RUN: llc -mtriple=x86_64-pc-windows-msvc -code-model=large -relocation-model=static -o - < %s | FileCheck %s
3 declare i32 @__CxxFrameHandler3(...)
7 define void @foo() personality ptr @__CxxFrameHandler3 {
10 to label %exit unwind label %cleanup
12 %c = cleanuppad within none []
13 call void @bar() [ "funclet"(token %c) ]
14 cleanupret from %c unwind to caller
20 ; CHECK: movabsq $bar, %[[reg:[^ ]*]]
21 ; CHECK: callq *%[[reg]]
24 ; CHECK: "?dtor$2@?0?foo@4HA":
25 ; CHECK: movabsq $bar, %[[reg:[^ ]*]]
26 ; CHECK: callq *%[[reg]]
27 ; CHECK: retq # CLEANUPRET