brintos

brintos / llvm-project-archived public Read only

0
0
Text · 911 B · 0a9a2d6 Raw
32 lines · plain
1; RUN: llc < %s | FileCheck %s2target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"3target triple = "i686-pc-windows-msvc18.0.0"4 5define void @f() personality ptr @__CxxFrameHandler3 {6entry:7  invoke void @g()8          to label %try.cont unwind label %catch.dispatch9 10catch.dispatch:                                   ; preds = %entry11  %cs1 = catchswitch within none [label %catch] unwind to caller12 13catch:                                            ; preds = %catch.dispatch14  %0 = catchpad within %cs1 [ptr null, i32 64, ptr null]15  catchret from %0 to label %try.cont16 17try.cont:                                         ; preds = %entry, %catch18  %b.0 = phi i1 [ false, %catch ], [ true, %entry ]19  tail call void @h(i1 zeroext %b.0)20  ret void21}22 23; CHECK-LABEL: _f:24; CHECK: calll _g25; CHECK: calll _h26 27declare void @g()28 29declare i32 @__CxxFrameHandler3(...)30 31declare void @h(i1 zeroext)32