Skip to content

Commit 244b90e

Browse files
Rollup merge of #106323 - starkat99:stabilize-f16c_target_feature, r=petrochenkov
Stabilize f16c_target_feature Resolves rust-lang/stdarch#1234 Library PR for stabilizing corresponding intrinsics: rust-lang/stdarch#1366 See also #44839 tracking issue for target_feature
2 parents 9928b14 + a29425c commit 244b90e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

compiler/rustc_codegen_ssa/src/target_features.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ const X86_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
187187
("bmi2", None),
188188
("cmpxchg16b", Some(sym::cmpxchg16b_target_feature)),
189189
("ermsb", Some(sym::ermsb_target_feature)),
190-
("f16c", Some(sym::f16c_target_feature)),
190+
("f16c", None),
191191
("fma", None),
192192
("fxsr", None),
193193
("gfni", Some(sym::avx512_target_feature)),
@@ -396,7 +396,6 @@ pub fn from_target_feature(
396396
Some(sym::cmpxchg16b_target_feature) => rust_features.cmpxchg16b_target_feature,
397397
Some(sym::movbe_target_feature) => rust_features.movbe_target_feature,
398398
Some(sym::rtm_target_feature) => rust_features.rtm_target_feature,
399-
Some(sym::f16c_target_feature) => rust_features.f16c_target_feature,
400399
Some(sym::ermsb_target_feature) => rust_features.ermsb_target_feature,
401400
Some(sym::bpf_target_feature) => rust_features.bpf_target_feature,
402401
Some(sym::aarch64_ver_target_feature) => rust_features.aarch64_ver_target_feature,

compiler/rustc_feature/src/accepted.rs

+2
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ declare_features! (
161161
(accepted, extern_crate_self, "1.34.0", Some(56409), None),
162162
/// Allows access to crate names passed via `--extern` through prelude.
163163
(accepted, extern_prelude, "1.30.0", Some(44660), None),
164+
/// Allows using F16C intrinsics from `core::arch::{x86, x86_64}`.
165+
(accepted, f16c_target_feature, "CURRENT_RUSTC_VERSION", Some(44839), None),
164166
/// Allows field shorthands (`x` meaning `x: x`) in struct literal expressions.
165167
(accepted, field_init_shorthand, "1.17.0", Some(37340), None),
166168
/// Allows `#[must_use]` on functions, and introduces must-use operators (RFC 1940).

compiler/rustc_feature/src/active.rs

-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ declare_features! (
254254
(active, bpf_target_feature, "1.54.0", Some(44839), None),
255255
(active, cmpxchg16b_target_feature, "1.32.0", Some(44839), None),
256256
(active, ermsb_target_feature, "1.49.0", Some(44839), None),
257-
(active, f16c_target_feature, "1.36.0", Some(44839), None),
258257
(active, hexagon_target_feature, "1.27.0", Some(44839), None),
259258
(active, mips_target_feature, "1.27.0", Some(44839), None),
260259
(active, movbe_target_feature, "1.34.0", Some(44839), None),

library/core/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@
239239
#![feature(arm_target_feature)]
240240
#![feature(avx512_target_feature)]
241241
#![feature(cmpxchg16b_target_feature)]
242-
#![feature(f16c_target_feature)]
243242
#![feature(hexagon_target_feature)]
244243
#![feature(mips_target_feature)]
245244
#![feature(powerpc_target_feature)]
@@ -248,6 +247,7 @@
248247
#![feature(sse4a_target_feature)]
249248
#![feature(tbm_target_feature)]
250249
#![feature(wasm_target_feature)]
250+
#![cfg_attr(bootstrap, feature(f16c_target_feature))]
251251

252252
// allow using `core::` in intra-doc links
253253
#[allow(unused_extern_crates)]

0 commit comments

Comments
 (0)