aboutsummaryrefslogtreecommitdiff
path: root/llvm/docs/CommandGuide/FileCheck.rst
diff options
context:
space:
mode:
authorThomas Preud'homme <thomasp@graphcore.ai>2020-05-01 19:25:08 +0100
committerThomas Preud'homme <thomasp@graphcore.ai>2020-05-02 23:31:18 +0100
commit0b85ea85334daa050da01083543a02b4cfc4cc00 (patch)
tree9c9a1a0e07eae0e898e4a81a169d76b59d3cfd50 /llvm/docs/CommandGuide/FileCheck.rst
parent6d103ca855552054f34849ecf0743bb39cebc8a9 (diff)
downloadllvm-0b85ea85334daa050da01083543a02b4cfc4cc00.zip
llvm-0b85ea85334daa050da01083543a02b4cfc4cc00.tar.gz
llvm-0b85ea85334daa050da01083543a02b4cfc4cc00.tar.bz2
[docs][FileCheck] Fix invalid example
Summary: FileCheck documentation contains an example of a numeric variable defined and used on the same line. This is not currently supported by FileCheck so this commit fixes the example to use CHECK-SAME for the variable use. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D79253
Diffstat (limited to 'llvm/docs/CommandGuide/FileCheck.rst')
-rw-r--r--llvm/docs/CommandGuide/FileCheck.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/docs/CommandGuide/FileCheck.rst b/llvm/docs/CommandGuide/FileCheck.rst
index 49db571..55fc3f0 100644
--- a/llvm/docs/CommandGuide/FileCheck.rst
+++ b/llvm/docs/CommandGuide/FileCheck.rst
@@ -634,7 +634,8 @@ For example:
; CHECK: load r[[#REG:]], [r0]
; CHECK: load r[[#REG+1]], [r1]
- ; CHECK: Loading from 0x[[#%x,ADDR:] to 0x[[#ADDR + 7]]
+ ; CHECK: Loading from 0x[[#%x,ADDR:]]
+ ; CHECK-SAME: to 0x[[#ADDR + 7]]
The above example would match the text: