Skip to content

Commit 9afca62

Browse files
committed
Temporary fix: change the feature gate of VEX variants
These were causing compilation failures while stabilizing avx512, will be FCP'd soon, together with the rest of AVX512
1 parent 5ef22a7 commit 9afca62

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

crates/core_arch/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
riscv_target_feature,
2424
arm_target_feature,
2525
avx512_target_feature,
26+
stdarch_x86_avx512,
2627
mips_target_feature,
2728
powerpc_target_feature,
2829
s390x_target_feature,

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,15 +197,15 @@ features! {
197197
/// AVX-512 P2INTERSECT
198198
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] avx512fp16: "avx512fp16";
199199
/// AVX-512 FP16 (FLOAT16 instructions)
200-
@FEATURE: #[unstable(feature = "avx512_target_feature", issue = "44839")] avxifma: "avxifma";
200+
@FEATURE: #[unstable(feature = "stdarch_x86_avx512", issue = "44839")] avxifma: "avxifma";
201201
/// AVX-IFMA (Integer Fused Multiply Add)
202-
@FEATURE: #[unstable(feature = "avx512_target_feature", issue = "44839")] avxneconvert: "avxneconvert";
202+
@FEATURE: #[unstable(feature = "stdarch_x86_avx512", issue = "44839")] avxneconvert: "avxneconvert";
203203
/// AVX-NE-CONVERT (Exceptionless Convert)
204-
@FEATURE: #[unstable(feature = "avx512_target_feature", issue = "44839")] avxvnni: "avxvnni";
204+
@FEATURE: #[unstable(feature = "stdarch_x86_avx512", issue = "44839")] avxvnni: "avxvnni";
205205
/// AVX-VNNI (Vector Neural Network Instructions)
206-
@FEATURE: #[unstable(feature = "avx512_target_feature", issue = "44839")] avxvnniint16: "avxvnniint16";
206+
@FEATURE: #[unstable(feature = "stdarch_x86_avx512", issue = "44839")] avxvnniint16: "avxvnniint16";
207207
/// AVX-VNNI_INT8 (VNNI with 16-bit Integers)
208-
@FEATURE: #[unstable(feature = "avx512_target_feature", issue = "44839")] avxvnniint8: "avxvnniint8";
208+
@FEATURE: #[unstable(feature = "stdarch_x86_avx512", issue = "44839")] avxvnniint8: "avxvnniint8";
209209
/// AVX-VNNI_INT16 (VNNI with 8-bit integers)
210210
@FEATURE: #[unstable(feature = "x86_amx_intrinsics", issue = "126622")] amx_tile: "amx-tile";
211211
/// AMX (Advanced Matrix Extensions) - Tile load/store

crates/std_detect/tests/x86-specific.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#![feature(
44
stdarch_internal,
55
avx512_target_feature,
6+
stdarch_x86_avx512,
67
sha512_sm_x86,
78
x86_amx_intrinsics,
89
xop_target_feature,

0 commit comments

Comments
 (0)