brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 0e54c00 Raw
46 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --scrub-attributes2; RUN: opt -S -passes=argpromotion < %s | FileCheck %s3; RUN: opt -S -passes=debugify -o /dev/null < %s4target triple = "x86_64-pc-windows-msvc"5 6define internal void @callee(ptr) {7; CHECK-LABEL: define {{[^@]+}}@callee() {8; CHECK-NEXT:  entry:9; CHECK-NEXT:    call void @thunk()10; CHECK-NEXT:    ret void11;12entry:13  call void @thunk()14  ret void15}16 17define void @test1() personality ptr @__CxxFrameHandler3 {18; CHECK-LABEL: define {{[^@]+}}@test1() personality ptr @__CxxFrameHandler3 {19; CHECK-NEXT:  entry:20; CHECK-NEXT:    invoke void @thunk()21; CHECK-NEXT:    to label [[OUT:%.*]] unwind label [[CPAD:%.*]]22; CHECK:       out:23; CHECK-NEXT:    ret void24; CHECK:       cpad:25; CHECK-NEXT:    [[PAD:%.*]] = cleanuppad within none []26; CHECK-NEXT:    call void @callee() [ "funclet"(token [[PAD]]) ]27; CHECK-NEXT:    cleanupret from [[PAD]] unwind to caller28;29entry:30  invoke void @thunk()31  to label %out unwind label %cpad32 33out:34  ret void35 36cpad:37  %pad = cleanuppad within none []38  call void @callee(ptr null) [ "funclet"(token %pad) ]39  cleanupret from %pad unwind to caller40}41 42 43declare void @thunk()44 45declare i32 @__CxxFrameHandler3(...)46