Skip to content

Commit f2e262f

Browse files
committed
re-stabilize the AVX-512 features that were stabilized in Rust 1.27.0
#739 added per-feature stabilization of runtime CPU feature detection. In so doing, it de-stabilized some detection features that had been stable since Rust 1.27.0, breaking some published crates (on nightly). This commit re-stabilizes the subset of AVX-512 detection features that were included in 1.27.0 (that is, the pre-Ice-Lake subset). Other instruction sets (MMX in particular) remain de-stabilized, pending a decision about whether should ever stabilize them. See rust-lang/rust#68905.
1 parent dea5752 commit f2e262f

File tree

1 file changed

+10
-10
lines changed
  • crates/std_detect/src/detect/arch

1 file changed

+10
-10
lines changed

crates/std_detect/src/detect/arch/x86.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -114,25 +114,25 @@ features! {
114114
/// AVX (Advanced Vector Extensions)
115115
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] avx2: "avx2";
116116
/// AVX2 (Advanced Vector Extensions 2)
117-
@FEATURE: #[unstable(feature = "stdsimd", issue = "27731")] avx512f: "avx512f" ;
117+
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] avx512f: "avx512f" ;
118118
/// AVX-512 F (Foundation)
119-
@FEATURE: #[unstable(feature = "stdsimd", issue = "27731")] avx512cd: "avx512cd" ;
119+
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] avx512cd: "avx512cd" ;
120120
/// AVX-512 CD (Conflict Detection Instructions)
121-
@FEATURE: #[unstable(feature = "stdsimd", issue = "27731")] avx512er: "avx512er";
121+
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] avx512er: "avx512er";
122122
/// AVX-512 ER (Expo nential and Reciprocal Instructions)
123-
@FEATURE: #[unstable(feature = "stdsimd", issue = "27731")] avx512pf: "avx512pf";
123+
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] avx512pf: "avx512pf";
124124
/// AVX-512 PF (Prefetch Instructions)
125-
@FEATURE: #[unstable(feature = "stdsimd", issue = "27731")] avx512bw: "avx512bw";
125+
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] avx512bw: "avx512bw";
126126
/// AVX-512 BW (Byte and Word Instructions)
127-
@FEATURE: #[unstable(feature = "stdsimd", issue = "27731")] avx512dq: "avx512dq";
127+
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] avx512dq: "avx512dq";
128128
/// AVX-512 DQ (Doubleword and Quadword)
129-
@FEATURE: #[unstable(feature = "stdsimd", issue = "27731")] avx512vl: "avx512vl";
129+
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] avx512vl: "avx512vl";
130130
/// AVX-512 VL (Vector Length Extensions)
131-
@FEATURE: #[unstable(feature = "stdsimd", issue = "27731")] avx512ifma: "avx512ifma";
131+
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] avx512ifma: "avx512ifma";
132132
/// AVX-512 IFMA (Integer Fused Multiply Add)
133-
@FEATURE: #[unstable(feature = "stdsimd", issue = "27731")] avx512vbmi: "avx512vbmi";
133+
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] avx512vbmi: "avx512vbmi";
134134
/// AVX-512 VBMI (Vector Byte Manipulation Instructions)
135-
@FEATURE: #[unstable(feature = "stdsimd", issue = "27731")] avx512vpopcntdq: "avx512vpopcntdq";
135+
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] avx512vpopcntdq: "avx512vpopcntdq";
136136
/// AVX-512 VPOPCNTDQ (Vector Population Count Doubleword and
137137
/// Quadword)
138138
@FEATURE: #[unstable(feature = "stdsimd", issue = "27731")] avx512vbmi2: "avx512vbmi2";

0 commit comments

Comments
 (0)