diff options
author | Chris Lattner <sabre@nondot.org> | 2009-09-20 22:35:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-09-20 22:35:26 +0000 |
commit | 236d2d5e7b604652becc5c475e270236b38e3981 (patch) | |
tree | 345def4680afa153c29db1d1b73b5e94554065dd /llvm/docs/TestingGuide.html | |
parent | caa5fc0c9dc391946c0304245257feeb04c0b0d5 (diff) | |
download | bcm5719-llvm-236d2d5e7b604652becc5c475e270236b38e3981.tar.gz bcm5719-llvm-236d2d5e7b604652becc5c475e270236b38e3981.zip |
implement and document support for CHECK-NOT
llvm-svn: 82408
Diffstat (limited to 'llvm/docs/TestingGuide.html')
-rw-r--r-- | llvm/docs/TestingGuide.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/llvm/docs/TestingGuide.html b/llvm/docs/TestingGuide.html index f9743634e77..9e4a40ade8d 100644 --- a/llvm/docs/TestingGuide.html +++ b/llvm/docs/TestingGuide.html @@ -595,6 +595,36 @@ directive in a file.</p> </div> <!-- _______________________________________________________________________ --> +<div class="doc_subsubsection"><a +name="FileCheck-CHECK-NOT">The "CHECK-NOT:" directive</a></div> + +<div class="doc_text"> + +<p>The CHECK-NOT: directive is used to verify that a string doesn't occur +between two matches (or the first matches and the beginning of the file). For +example, to verify that a load is removed by a transformation, a test like this +can be used:</p> + +<div class="doc_code"> +<pre> +define i8 @coerce_offset0(i32 %V, i32* %P) { + store i32 %V, i32* %P + + %P2 = bitcast i32* %P to i8* + %P3 = getelementptr i8* %P2, i32 2 + + %A = load i8* %P3 + ret i8 %A +; <b>CHECK:</b> @coerce_offset0 +; <b>CHECK-NOT:</b> load +; <b>CHECK:</b> ret i8 +} +</pre> +</div> + +</div> + +<!-- _______________________________________________________________________ --> <div class="doc_subsection"><a name="dgvars">Variables and substitutions</a></div> <!-- _______________________________________________________________________ --> |