[PATCH] D112936: [Docs] Document update_llc_test_checks.py in TestingGuide.rst
Shivam Gupta via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 1 09:11:17 PDT 2021
xgupta created this revision.
xgupta added reviewers: lebedev.ri, RKSimon.
Herald added subscribers: luke957, s.egerton, simoncook.
xgupta requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This patch document update_llc_test_checks.py that is use to generate
asserions in most of the llvm/Target/Codegen tests. Suggested by @jrtc27.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D112936
Files:
llvm/docs/TestingGuide.rst
Index: llvm/docs/TestingGuide.rst
===================================================================
--- llvm/docs/TestingGuide.rst
+++ llvm/docs/TestingGuide.rst
@@ -275,6 +275,20 @@
test. Check if there are files already covering your feature and consider
adding your code there instead of creating a new file.
+Generating assertions in regression tests
+---------------------------------------------------
+
+Some regression test cases are very large and complex to write/update by hand.
+In that case to reduce the human work we can use the scripts available in
+llvm/utils/ to generate the assertions.
+
+For example to update assertions in all the RISCV CodeGen's 'llc' based tests,
+run:
+
+ .. code-block:: bash
+
+ % llvm/utils/update_llc_test_checks.py --llc-binary build/bin/llc -u `find llvm/test/CodeGen/RISCV/ \( -name '*.ll' -o -name '*.mir' \)`
+
Extra files
-----------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112936.383815.patch
Type: text/x-patch
Size: 900 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211101/db49fff9/attachment-0001.bin>
More information about the llvm-commits
mailing list