-
Notifications
You must be signed in to change notification settings - Fork 133
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
aes: compilation errors on cg_clif
due to lack of intrinsics support
#391
Comments
cc @bjorn3 |
It's clearly a Cranelift issue and I don't think we should do anything to address it. |
For the sake of accuracy, missing intrinsics trigger warnings about traps used instead of unimplemented intrinsics. Compilation does not fail! |
Looks like this will be addressed by rust-lang/rustc_codegen_cranelift#1425 Going to go ahead and close this. |
See:
aesimc
aesdec
aesdeclast
(used byaes
andring
) rust-lang/rustc_codegen_cranelift#1410Cranelift doesn't support these intrinsics yet, so
compilation failsit inserts traps instead of using the intrinsics.I've suggested
cfg(aes_force_soft)
as a workaround, but it would be nice if this just worked, and even better if hardware acceleration worked.One option would be to use inline assembly, which would also provide an avenue to address #385.
The text was updated successfully, but these errors were encountered: