[PATCH] D99866: [test, AArch64] Fix use of var defined in CHECK-NOT
Thomas Preud'homme via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 6 12:07:23 PDT 2021
thopre marked an inline comment as done.
thopre added inline comments.
================
Comment at: llvm/test/CodeGen/AArch64/speculation-hardening.ll:20
+; NOSLH-NOT: mov {{x[0-9]+}}, sp
+; NOSLH-NOT: and [[TMPREG:x[0-9]+]], [[TMPREG]], x16
+; NOSLH-NOT: mov sp, {{x[0-9]+}}
----------------
aemerson wrote:
> What about TMPREG?
Using a variable defined on the same line works, it gets translated into a regex backreference. TMPREG will never be defined for use in later directive but FileCheck will check that `and (x[0-9]+), \1, x16` does not occur.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99866/new/
https://reviews.llvm.org/D99866
More information about the llvm-commits
mailing list