about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorsayantn <sayantan.chakraborty@students.iiserpune.ac.in>2024-08-01 23:13:51 +0530
committersayantn <sayantan.chakraborty@students.iiserpune.ac.in>2024-08-02 02:29:15 +0530
commit41b017ec9945ce6b514e44b8dd26c9d0c0952c9c (patch)
tree3ad8d22d9bd266b5e2a137352400034f527234db /compiler/rustc_codegen_ssa/src
parente60ebb2f2c1facba87e7971798f3cbdfd309cd23 (diff)
downloadrust-41b017ec9945ce6b514e44b8dd26c9d0c0952c9c.tar.gz
rust-41b017ec9945ce6b514e44b8dd26c9d0c0952c9c.zip
Add the `sha512`, `sm3` and `sm4` target features
Add the feature in `core/lib.rs`
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/target_features.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/target_features.rs b/compiler/rustc_codegen_ssa/src/target_features.rs
index 77da4e4caea..b52e6259944 100644
--- a/compiler/rustc_codegen_ssa/src/target_features.rs
+++ b/compiler/rustc_codegen_ssa/src/target_features.rs
@@ -78,6 +78,7 @@ pub fn from_target_feature(
                 Some(sym::loongarch_target_feature) => rust_features.loongarch_target_feature,
                 Some(sym::lahfsahf_target_feature) => rust_features.lahfsahf_target_feature,
                 Some(sym::prfchw_target_feature) => rust_features.prfchw_target_feature,
+                Some(sym::sha512_sm_x86) => rust_features.sha512_sm_x86,
                 Some(sym::x86_amx_intrinsics) => rust_features.x86_amx_intrinsics,
                 Some(sym::xop_target_feature) => rust_features.xop_target_feature,
                 Some(sym::s390x_target_feature) => rust_features.s390x_target_feature,