xref: /llvm-project/llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/custom-tool.ll.expected (revision 697bfa40a3f853d8b9103ead53cd80a4f7c5a7df)
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --tool llvm-extract
2; RUN: llvm-extract -S --func=foo %s | FileCheck --check-prefixes=CHECK %s
3
4define i32 @foo(i32 %x) {
5; CHECK-LABEL: @foo(
6; CHECK-NEXT:    [[Y:%.*]] = add i32 [[X:%.*]], 1
7; CHECK-NEXT:    ret i32 [[Y]]
8;
9  %y = add i32 %x, 1
10  ret i32 %y
11}
12