[Test][FileCheck] Fix use of undef var
authorThomas Preud'homme <thomasp@graphcore.ai>
Thu, 20 Aug 2020 19:41:43 +0000 (20:41 +0100)
committerThomas Preud'homme <thomasp@graphcore.ai>
Sat, 9 Jan 2021 10:45:00 +0000 (10:45 +0000)
commitc0cea2d9b8ae4dc47f7737e47a621ddcb9cb57cf
tree778febcf9374ce4b30d509fe6af6a3641bff99ec
parent0d8dfbb42a7d5e152bb98e50f170317ba60c47ef
[Test][FileCheck] Fix use of undef var

The test related to directives with prefix NUMEXPR-CONSTRAINT-NOMATCH
refers to the numeric variable UNSI which is defined by a directive with
prefix CHECK not enabled on the lit command-line. Rather than adding the
prefix CHECK to the lit command-line, this commit defined variable UNSI
in a new NUMEXPR-CONSTRAINT-NOMATCH prefixed directive. The directive
needs to contain more than just the variable otherwise the error message
from FileCheck is about the wrong line being matched.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D93346
llvm/test/FileCheck/numeric-expression.txt