1 ; RUN: not opt -S -verify < %s 2>&1 | FileCheck %s
3 declare void @llvm.experimental.guard(i1, ...)
5 declare void @unknown()
7 define void @f_nodeopt() {
9 call void(i1, ...) @llvm.experimental.guard(i1 undef, i32 1, i32 2)
10 ; CHECK: guard must have exactly one "deopt" operand bundle
14 define void @f_invoke() personality i8 3 {
16 invoke void(i1, ...) @llvm.experimental.guard(i1 undef, i32 0, float 0.0) [ "deopt"() ] to label %ok unwind label %not_ok
17 ; CHECK: guard cannot be invoked
23 %0 = landingpad { i8*, i32 }
24 filter [0 x i8*] zeroinitializer