[test, AArch64] Fix use of var defined in CHECK-NOT
authorThomas Preud'homme <thomasp@graphcore.ai>
Sun, 28 Mar 2021 00:03:37 +0000 (00:03 +0000)
committerThomas Preud'homme <thomasp@graphcore.ai>
Tue, 6 Apr 2021 09:45:08 +0000 (10:45 +0100)
commit638d70be6b931c6ac5b7fefb9f3e866e4a89522c
tree2c597c956177c7ddba9e9167e783dd5bcb1ba671
parent2fc761aac93a8e2afef4a6dc618032bb97d8b9de
[test, AArch64] Fix use of var defined in CHECK-NOT

LLVM test CodeGen/AArch64/aarch64-tbz.ll tries to check for the absence
of a sequence of instructions with several CHECK-NOT with one of those
directives using a variable defined in another. However CHECK-NOT are
checked independently so that is using a variable defined in a pattern
that should not occur in the input.

This commit removes the definition and uses of variable to check each
line independently, making the check stronger than the current one. It
also removes unnecessary regex match for labels.

Reviewed By: dmgreen

Differential Revision: https://reviews.llvm.org/D99602
llvm/test/CodeGen/AArch64/aarch64-tbz.ll