We have a downstream project with a command-line utility that operates pretty much exactly like `opt`. So it would make sense for us to maintain tests with update_test_checks.py with our custom tool substituted for `opt`, as this change allows. Differential Revision: https://reviews.llvm.org/D136329
12 lines
346 B
Plaintext
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
|
|
}
|