Skip to content

Commit 904467a

Browse files
committed
Ensure all crypto components (AES, PMULL, SHA1/2) are available on arm/aarch64
1 parent c71e58d commit 904467a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/rustc_codegen_ssa/src/target_features.rs

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ const ARM_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
1717
("neon", Some(sym::arm_target_feature)),
1818
("crc", Some(sym::arm_target_feature)),
1919
("crypto", Some(sym::arm_target_feature)),
20+
("aes", Some(sym::arm_target_feature)),
21+
("sha2", Some(sym::arm_target_feature)),
2022
("v5te", Some(sym::arm_target_feature)),
2123
("v6", Some(sym::arm_target_feature)),
2224
("v6k", Some(sym::arm_target_feature)),
@@ -107,6 +109,8 @@ const AARCH64_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
107109
("jsconv", Some(sym::aarch64_target_feature)),
108110
// FEAT_FCMA
109111
("fcma", Some(sym::aarch64_target_feature)),
112+
// FEAT_AES
113+
("aes", Some(sym::aarch64_target_feature)),
110114
// FEAT_SHA1 & FEAT_SHA256
111115
("sha2", Some(sym::aarch64_target_feature)),
112116
// FEAT_SHA512 & FEAT_SHA3

0 commit comments

Comments
 (0)