rustc_codegen_ssa: add s390x_target_feature symbol

This commit is contained in:
liushuyu 2024-07-09 16:53:11 +08:00
parent c940d52cb0
commit 366bc8691b
2 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,7 @@ pub fn from_target_feature(
Some(sym::prfchw_target_feature) => rust_features.prfchw_target_feature, Some(sym::prfchw_target_feature) => rust_features.prfchw_target_feature,
Some(sym::x86_amx_intrinsics) => rust_features.x86_amx_intrinsics, Some(sym::x86_amx_intrinsics) => rust_features.x86_amx_intrinsics,
Some(sym::xop_target_feature) => rust_features.xop_target_feature, Some(sym::xop_target_feature) => rust_features.xop_target_feature,
Some(sym::s390x_target_feature) => rust_features.s390x_target_feature,
Some(name) => bug!("unknown target feature gate {}", name), Some(name) => bug!("unknown target feature gate {}", name),
None => true, None => true,
}; };

View File

@ -312,6 +312,7 @@ declare_features! (
(unstable, prfchw_target_feature, "1.78.0", Some(44839)), (unstable, prfchw_target_feature, "1.78.0", Some(44839)),
(unstable, riscv_target_feature, "1.45.0", Some(44839)), (unstable, riscv_target_feature, "1.45.0", Some(44839)),
(unstable, rtm_target_feature, "1.35.0", Some(44839)), (unstable, rtm_target_feature, "1.35.0", Some(44839)),
(unstable, s390x_target_feature, "CURRENT_RUSTC_VERSION", Some(44839)),
(unstable, sse4a_target_feature, "1.27.0", Some(44839)), (unstable, sse4a_target_feature, "1.27.0", Some(44839)),
(unstable, tbm_target_feature, "1.27.0", Some(44839)), (unstable, tbm_target_feature, "1.27.0", Some(44839)),
(unstable, wasm_target_feature, "1.30.0", Some(44839)), (unstable, wasm_target_feature, "1.30.0", Some(44839)),