Add scripts for building/testing gcc torture tests#317
Open
Toizi wants to merge 1 commit intolifting-bits:masterfrom
Open
Add scripts for building/testing gcc torture tests#317Toizi wants to merge 1 commit intolifting-bits:masterfrom
Toizi wants to merge 1 commit intolifting-bits:masterfrom
Conversation
generate_compile_commands.py and compress_bitcode.sh have been taken from the AnghaBench repository and modified slightly for the gcc torture tests. build_and_compress.sh will download the test suite using LLVM's release tags (e.g. "release/15.x") and call the other two scripts to build and compress the binaries/bitcode. roundtrip.py has been modified to support recursing into subdirectories to support using it on the output generated by the lifting-tools-ci/tool_run_scripts/rellic.py script. test-gcc-torture.sh is a modified version of test-angha-1k.sh with the option to run roundtrip.py on the output for the host architecture. For the tests to work, the script lifting-tools-ci/datasets/fetch_gcc_torture.sh will need to be added analogous to the fetch_angha.sh one.
Contributor
|
@Toizi This is excellent! |
Collaborator
|
Hi @Toizi! This is really great. Can you share what your dummy |
Author
|
Hey @frabert, the dummy script will simply need to copy the compressed bitcode to the current directory. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See #80
generate_compile_commands.pyandcompress_bitcode.shhave been taken from theAnghaBenchrepository and modified slightly for the gcc torture tests.build_and_compress.shwill download the test suite using LLVM's release tags (e.g. "release/15.x") and call the other two scripts to build and compress the binaries/bitcode.roundtrip.pyhas been modified to support recursing into subdirectories to support using it on the output generated by thelifting-tools-ci/tool_run_scripts/rellic.pyscript.test-gcc-torture.shis a modified version oftest-angha-1k.shwith the option to runroundtrip.pyon the output for the host architecture.lifting-tools-ci/datasets/fetch_gcc_torture.shwill need to be added analogous to the fetch_angha.sh one.Only tested with LLVM 15 so far.
Test output (slightly trimmed) using dummy
fetch_gcc_torture.shfor just amd64