Skip to content

allow aarch64_softfloat_neon for backwards compatibility #1803

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions crates/core_arch/src/aarch64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
//! [arm_ref]: http://infocenter.arm.com/help/topic/com.arm.doc.ihi0073a/IHI0073A_arm_neon_intrinsics_ref.pdf
//! [arm_dat]: https://developer.arm.com/technologies/neon/intrinsics

#![cfg_attr(
all(target_arch = "aarch64", target_abi = "softfloat"),
// Just allow the warning: anyone soundly using the intrinsics has to enable
// the target feature, and that will generate a warning for them.
allow(aarch64_softfloat_neon)
)]

mod mte;
#[unstable(feature = "stdarch_aarch64_mte", issue = "129010")]
pub use self::mte::*;
Expand Down
6 changes: 6 additions & 0 deletions crates/core_arch/src/arm_shared/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@
//!
//! - [ACLE Q2 2018](https://developer.arm.com/docs/101028/latest)

#![cfg_attr(
all(target_arch = "aarch64", target_abi = "softfloat"),
// Just allow the warning: anyone soundly using the intrinsics has to enable
// the target feature, and that will generate a warning for them.
allow(aarch64_softfloat_neon)
)]
// Only for 'neon' submodule
#![allow(non_camel_case_types)]

Expand Down
Loading