brintos

brintos / llvm-project-archived public Read only

0
0
Text · 964 B · 03f227a Raw
28 lines · plain
1; RUN: not llc -mtriple=x86_64-unknown-unknown -stackrealign -verify-machineinstrs %s -o - 2>&1 | FileCheck %s2 3declare ghccc void @may_throw_or_crash()4declare i32 @_except_handler3(...)5 6define internal i64 @catchall_filt() {7  ret i64 18}9 10; If the invoked function clobbers frame pointer and/or base pointer according11; to its calling convention, we can't handle it currently, so reports an error12; message.13 14; CHECK: <unknown>:0: error: Frame pointer clobbered by function invoke is not supported15; CHECK: <unknown>:0: error: Stack realignment in presence of dynamic allocas is not supported with this calling convention16define void @use_except_handler3() personality ptr @_except_handler3 {17entry:18  invoke ghccc void @may_throw_or_crash()19      to label %cont unwind label %lpad20cont:21  ret void22lpad:23  %cs = catchswitch within none [label %catch] unwind to caller24catch:25  %p = catchpad within %cs [ptr @catchall_filt]26  catchret from %p to label %cont27}28