brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 51fba22 Raw
31 lines · plain
1; RUN: opt -S -passes='require<profile-summary>,function(codegenprepare)' < %s | FileCheck %s2target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"3target triple = "x86_64-pc-windows-msvc"4 5@rtti = external global i86 7define void @test1() personality ptr @__CxxFrameHandler3 {8entry:9  %e = alloca i810  invoke void @_CxxThrowException(ptr null, ptr null)11          to label %catchret.dest unwind label %catch.dispatch12 13catch.dispatch:                                   ; preds = %entry14  %0 = catchswitch within none [label %catch] unwind to caller15 16catch:                                            ; preds = %catch.dispatch17  %1 = catchpad within %0 [ptr @rtti, i32 0, ptr %e]18  catchret from %1 to label %catchret.dest19 20catchret.dest:                                    ; preds = %catch21  ret void22}23; CHECK-LABEL: define void @test1(24; CHECK: %[[alloca:.*]] = alloca i825 26; CHECK: catchpad within {{.*}} [ptr @rtti, i32 0, ptr %[[alloca]]]27 28declare void @_CxxThrowException(ptr, ptr)29 30declare i32 @__CxxFrameHandler3(...)31