llvm/llvm/test/Transforms/InstCombine/pr69059.ll

; 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)