bolt/deps/llvm-18.1.8/llvm/test/Transforms/InstCombine/pr69059.ll
2025-02-14 19:21:04 +01:00

16 lines
450 B
LLVM

; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 3
; RUN: opt < %s -passes=instcombine -S | FileCheck %s
define i64 @pr69059() {
; CHECK-LABEL: define i64 @pr69059() {
; CHECK-NEXT: entry:
; CHECK-NEXT: [[CALL:%.*]] = call i64 @labs(i32 0)
; CHECK-NEXT: ret i64 [[CALL]]
;
entry:
%call = call i64 @labs(i32 0)
ret i64 %call
}
; negative test: not a valid libfunc proto
declare i64 @labs(i32)