Skip to content

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

Merged
tarcieri merged 1 commit intoRustCrypto:masterfrom
brxken128:cmov-miri
Mar 24, 2023
Merged

cmov: add miri support by forcing the portable backend#864
tarcieri merged 1 commit intoRustCrypto:masterfrom
brxken128:cmov-miri

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