Skip to content
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

cmov: add miri support by forcing the portable backend #864

Merged
merged 1 commit into from
Mar 24, 2023

Conversation

brxken128
Copy link
Contributor

I'm not too sure if these cfgs are the most optimised - feel free to request any adjustments!

Currently miri doesn't have support for inline ASM, so any usage of the cmov crate (on inline ASM-utilising architectures) causes a failure. I scoured miri's docs for a solution, but this also works.

I have tested these changes locally - all architectures build, and miri works too!

I'm unsure whether or not this should be included in the README, it wasn't here but it's no hassle either way.

@tarcieri
Copy link
Member

That's fine. If it gets any more gnarly we can use cfg-if.

@tarcieri tarcieri merged commit 9ad3448 into RustCrypto:master Mar 24, 2023
@tarcieri tarcieri mentioned this pull request Apr 3, 2023
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.

2 participants