[PATCH] D95794: [WIP][Utils] Fix conflicting checkline generation.
Kuter Dinel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 1 15:04:58 PST 2021
kuter added a comment.
A real example that doesn't work.
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S < %s | FileCheck --check-prefixes=A,B,C
; RUN: opt -S < %s | FileCheck --check-prefixes=A,E
; RUN: opt -S < %s | FileCheck --check-prefixes=B,D
define i32 @negated_operand(i32 %x) {
; A-LABEL: @negated_operand(
; A-NEXT: [[NEGX:%.*]] = sub i32 0, [[X:%.*]]
; A-NEXT: [[R:%.*]] = add i32 [[NEGX]], [[X]]
; A-NEXT: ret i32 [[R]]
;
; B-LABEL: @negated_operand(
; B-NEXT: [[NEGX:%.*]] = sub i32 0, [[X:%.*]]
; B-NEXT: [[R:%.*]] = add i32 [[NEGX]], [[X]]
; B-NEXT: ret i32 [[R]]
;
%negx = sub i32 0, %x
%r = add i32 %negx, %x
ret i32 %r
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95794/new/
https://reviews.llvm.org/D95794
More information about the llvm-commits
mailing list