diff --git a/docs/Testing.md b/docs/Testing.md index 6b3e211bf8c00..5669523413d18 100644 --- a/docs/Testing.md +++ b/docs/Testing.md @@ -466,15 +466,17 @@ Other substitutions: * ``%{python}``: run the same Python interpreter that's being used to run the current ``lit`` test. -* ``%FileCheck``: like the LLVM ``FileCheck`` utility, but occurrences of full +* ``%FileCheck``: like the LLVM [``FileCheck``] utility, but occurrences of full paths to the source and build directories in the input text are replaced with path-independent constants. -* ``%raw-FileCheck``: the LLVM ``FileCheck`` utility. +* ``%raw-FileCheck``: the LLVM [``FileCheck``] utility. * ``%empty-directory(`` *directory-name* ``)``: ensures that the given directory exists and is empty. Equivalent to ``rm -rf directory-name && mkdir -p directory-name``. + +[``FileCheck``]: https://llvm.org/docs/CommandGuide/FileCheck.html When writing a test where output (or IR, SIL) depends on the bitness of the target CPU, use this pattern::