about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorChris Denton <chris@chrisdenton.dev>2024-02-12 09:06:45 -0300
committerChris Denton <chris@chrisdenton.dev>2024-02-12 10:31:12 -0300
commit83a850f2a1259eb05ef444c81bcb5869d6dbf336 (patch)
tree50d7bfba54f16ca6cb03065036eebb835cf4ca5e /compiler/rustc_codegen_ssa/src
parentaebf4511e919e8df6db8a9217fd56316a9f8a38f (diff)
downloadrust-83a850f2a1259eb05ef444c81bcb5869d6dbf336.tar.gz
rust-83a850f2a1259eb05ef444c81bcb5869d6dbf336.zip
Add lahfsahf and prfchw target feature
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/target_features.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/target_features.rs b/compiler/rustc_codegen_ssa/src/target_features.rs
index 3694e41a0e0..ee1d548b231 100644
--- a/compiler/rustc_codegen_ssa/src/target_features.rs
+++ b/compiler/rustc_codegen_ssa/src/target_features.rs
@@ -77,6 +77,8 @@ pub fn from_target_feature(
                 Some(sym::aarch64_ver_target_feature) => rust_features.aarch64_ver_target_feature,
                 Some(sym::csky_target_feature) => rust_features.csky_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(name) => bug!("unknown target feature gate {}", name),
                 None => true,
             };