1 ; RUN: opt -S -passes=lower-guard-intrinsic < %s | FileCheck %s
3 declare cc99 void @llvm.experimental.guard(i1, ...)
5 define i8 @f_basic(ptr %c_ptr) {
6 ; CHECK-LABEL: @f_basic(
7 ; CHECK: br i1 %c, label %guarded, label %deopt
9 ; CHECK-NEXT: %deoptcall = call cc99 i8 (...) @llvm.experimental.deoptimize.i8() [ "deopt"() ]
10 ; CHECK-NEXT: ret i8 %deoptcall
12 %c = load volatile i1, ptr %c_ptr
13 call cc99 void(i1, ...) @llvm.experimental.guard(i1 %c) [ "deopt"() ]