17 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 32; RUN: opt < %s -passes=instcombine -S | FileCheck %s3 4define i64 @pr69059() {5; CHECK-LABEL: define i64 @pr69059() {6; CHECK-NEXT: entry:7; CHECK-NEXT: [[CALL:%.*]] = call i64 @labs(i32 0)8; CHECK-NEXT: ret i64 [[CALL]]9;10entry:11 %call = call i64 @labs(i32 0)12 ret i64 %call13}14 15; negative test: not a valid libfunc proto16declare i64 @labs(i32)17