21 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature2; RUN: opt < %s -passes=instcombine -S | FileCheck %s3 4define void @f(i16 %y) {5; CHECK-LABEL: define {{[^@]+}}@f6; CHECK-SAME: (i16 [[Y:%.*]]) {7; CHECK-NEXT: ret void8;9 ret void10}11 12define i32 @g(i32 %y) {13; CHECK-LABEL: define {{[^@]+}}@g14; CHECK-SAME: (i32 [[Y:%.*]]) {15; CHECK-NEXT: [[X:%.*]] = call i32 @f(i32 [[Y]])16; CHECK-NEXT: ret i32 [[X]]17;18 %x = call i32 @f( i32 %y )19 ret i32 %x20}21