rust-lang / rustc_codegen_cranelift

Cranelift based backend for rustc
Apache License 2.0
1.52k stars 94 forks source link

Implement AES-NI and SHA256 crypto intrinsics using inline asm #1425

Closed bjorn3 closed 7 months ago

bjorn3 commented 7 months ago

Fixes https://github.com/rust-lang/rustc_codegen_cranelift/issues/1409 Fixes https://github.com/rust-lang/rustc_codegen_cranelift/issues/1410 Part of https://github.com/rust-lang/rustc_codegen_cranelift/issues/171 cc https://github.com/RustCrypto/block-ciphers/issues/391

bjorn3 commented 7 months ago

Added sha256 intrinsic support too. Github has started using AMD processors with support for these instructions which was randomly causing the rustc tests to fail as bootstrap uses them when available.

benwis commented 7 months ago

Ooh! Hoping this gets into nightly soon, nice work!

bjorn3 commented 7 months ago

Will be available in tomorrow's nightly.