8000 Added support for testing the backend with abi-cafe by FractalFir · Pull Request #710 · rust-lang/rustc_codegen_gcc · GitHub
[go: up one dir, main page]

Skip to content

Added support for testing the backend with abi-cafe #710

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 18, 2025

Conversation

FractalFir
Copy link
Contributor

I added a new command(abi-test) that runs the abi-cafe test suite, comparing the ABI implemented by the LLVM version of Rustc, and the GCC version of rustc.

Additionally, as a base sanity check, the command will also compare the implementation of the C abi in cg_gcc and in the system's C compiler.

Copy link
Contributor
@antoyo antoyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job!

@bjorn3
Copy link
Member
bjorn3 commented Jun 14, 2025

You could also add it to CI. Takes about 5min for cg_clif when only testing Linux. For handling the known test failures, there is a section in src/report.rs of abi-cafe that you can patch like so: https://github.com/rust-lang/rustc_codegen_cranelift/blob/master/patches/0002-abi-cafe-Disable-broken-tests.patch

@FractalFir
Copy link
Contributor Author

Getting this to run reliably in the CI is proving a bit difficult. Could we get this PR merged for now, and worry about adding new checks to the CI later?

@antoyo antoyo merged commit 395bca1 into 8F5D rust-lang:master Jun 18, 2025
38 checks passed
@antoyo
Copy link
Contributor
antoyo commented Jun 18, 2025

I'm good with this.
Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0