From 83a850f2a1259eb05ef444c81bcb5869d6dbf336 Mon Sep 17 00:00:00 2001 From: Chris Denton Date: Mon, 12 Feb 2024 09:06:45 -0300 Subject: Add lahfsahf and prfchw target feature --- compiler/rustc_codegen_ssa/src/target_features.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler/rustc_codegen_ssa/src') 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, }; -- cgit 1.4.1-3-g733a5