Files
clang-p2996/llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/custom-tool.ll.expected
Nikita Popov 697bfa40a3 Revert "[UpdateTestChecks] Match define for labels"
This reverts commit a888825aee.

This changes the default output of UTC, and as such introduces
spurious changes whenever existing tests are regenerated.

I've indicated in https://reviews.llvm.org/D139006#3989954 how
this can be implemented without causing test churn.
2022-12-13 09:15:35 +01:00

12 lines
346 B
Plaintext

; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --tool llvm-extract
; RUN: llvm-extract -S --func=foo %s | FileCheck --check-prefixes=CHECK %s
define i32 @foo(i32 %x) {
; CHECK-LABEL: @foo(
; CHECK-NEXT: [[Y:%.*]] = add i32 [[X:%.*]], 1
; CHECK-NEXT: ret i32 [[Y]]
;
%y = add i32 %x, 1
ret i32 %y
}