1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/test/Transforms/LowerGuardIntrinsic/with-calling-conv.ll
Eric Christopher a62270de2c Revert "Temporarily Revert "Add basic loop fusion pass.""
The reversion apparently deleted the test/Transforms directory.

Will be re-reverting again.

llvm-svn: 358552
2019-04-17 04:52:47 +00:00

16 lines
485 B
LLVM

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