Update feature names for new stdarch

This commit is contained in:
Amanieu d'Antras 2023-10-31 23:06:00 +00:00
parent f8d4b2a150
commit 9a39e41637
7 changed files with 22 additions and 20 deletions

View File

@ -429,10 +429,6 @@ pub mod primitive;
deprecated_in_future deprecated_in_future
)] )]
#[allow(rustdoc::bare_urls)] #[allow(rustdoc::bare_urls)]
// FIXME: This annotation should be moved into rust-lang/stdarch after clashing_extern_declarations is
// merged. It currently cannot because bootstrap fails as the lint hasn't been defined yet.
#[allow(clashing_extern_declarations)]
#[unstable(feature = "stdsimd", issue = "48556")]
mod core_arch; mod core_arch;
#[stable(feature = "simd_arch", since = "1.27.0")] #[stable(feature = "simd_arch", since = "1.27.0")]

View File

@ -385,7 +385,6 @@
#![feature(get_many_mut)] #![feature(get_many_mut)]
#![feature(lazy_cell)] #![feature(lazy_cell)]
#![feature(log_syntax)] #![feature(log_syntax)]
#![feature(stdsimd)]
#![feature(test)] #![feature(test)]
#![feature(trace_macros)] #![feature(trace_macros)]
// tidy-alphabetical-end // tidy-alphabetical-end
@ -624,13 +623,16 @@ pub mod arch {
#[stable(feature = "simd_aarch64", since = "1.60.0")] #[stable(feature = "simd_aarch64", since = "1.60.0")]
pub use std_detect::is_aarch64_feature_detected; pub use std_detect::is_aarch64_feature_detected;
#[unstable(feature = "stdarch_arm_feature_detection", issue = "111190")]
pub use std_detect::is_arm_feature_detected;
#[unstable(feature = "is_riscv_feature_detected", issue = "111192")]
pub use std_detect::is_riscv_feature_detected;
#[stable(feature = "simd_x86", since = "1.27.0")] #[stable(feature = "simd_x86", since = "1.27.0")]
pub use std_detect::is_x86_feature_detected; pub use std_detect::is_x86_feature_detected;
#[unstable(feature = "stdsimd", issue = "48556")] #[unstable(feature = "stdarch_mips_feature_detection", issue = "111188")]
pub use std_detect::{ pub use std_detect::{is_mips64_feature_detected, is_mips_feature_detected};
is_arm_feature_detected, is_mips64_feature_detected, is_mips_feature_detected, #[unstable(feature = "stdarch_powerpc_feature_detection", issue = "111191")]
is_powerpc64_feature_detected, is_powerpc_feature_detected, is_riscv_feature_detected, pub use std_detect::{is_powerpc64_feature_detected, is_powerpc_feature_detected};
};
} }
// This was stabilized in the crate root so we have to keep it there. // This was stabilized in the crate root so we have to keep it there.

View File

@ -1,12 +1,16 @@
//! These tests just check that the macros are available in std. //! These tests just check that the macros are available in std.
#![cfg_attr( #![cfg_attr(
any( all(target_arch = "arm", any(target_os = "linux", target_os = "android")),
all(target_arch = "arm", any(target_os = "linux", target_os = "android")), feature(stdarch_arm_feature_detection)
all(target_arch = "powerpc", target_os = "linux"), )]
all(target_arch = "powerpc64", target_os = "linux"), #![cfg_attr(
), all(target_arch = "powerpc", target_os = "linux"),
feature(stdsimd) feature(stdarch_powerpc_feature_detection)
)]
#![cfg_attr(
all(target_arch = "powerpc64", target_os = "linux"),
feature(stdarch_powerpc_feature_detection)
)] )]
#[test] #[test]

View File

@ -9,7 +9,7 @@
//@ignore-target-wasm32 //@ignore-target-wasm32
//@compile-flags: -C target-feature=+aes,+vaes,+avx512f //@compile-flags: -C target-feature=+aes,+vaes,+avx512f
#![feature(avx512_target_feature, stdsimd)] #![feature(avx512_target_feature, stdarch_x86_avx512)]
use core::mem::transmute; use core::mem::transmute;
#[cfg(target_arch = "x86")] #[cfg(target_arch = "x86")]

View File

@ -10,7 +10,7 @@
//@compile-flags: -C target-feature=+avx512f,+avx512vl,+avx512bitalg,+avx512vpopcntdq //@compile-flags: -C target-feature=+avx512f,+avx512vl,+avx512bitalg,+avx512vpopcntdq
#![feature(avx512_target_feature)] #![feature(avx512_target_feature)]
#![feature(stdsimd)] #![feature(stdarch_x86_avx512)]
#[cfg(target_arch = "x86")] #[cfg(target_arch = "x86")]
use std::arch::x86::*; use std::arch::x86::*;

View File

@ -1,7 +1,7 @@
// only-aarch64 // only-aarch64
// compile-flags: -C target-feature=+neon // compile-flags: -C target-feature=+neon
#![feature(repr_simd, stdsimd, asm_const)] #![feature(repr_simd, asm_const)]
use std::arch::aarch64::float64x2_t; use std::arch::aarch64::float64x2_t;
use std::arch::{asm, global_asm}; use std::arch::{asm, global_asm};

View File

@ -1,7 +1,7 @@
// only-aarch64 // only-aarch64
// compile-flags: -C target-feature=+neon // compile-flags: -C target-feature=+neon
#![feature(repr_simd, stdsimd, asm_const)] #![feature(repr_simd, asm_const)]
use std::arch::aarch64::float64x2_t; use std::arch::aarch64::float64x2_t;
use std::arch::{asm, global_asm}; use std::arch::{asm, global_asm};