Skip to content

Commit b6e2249

Browse files
RalfJungAmanieu
authored andcommitted
allow aarch64_softfloat_neon for backwards compatibility
1 parent 9eb15e2 commit b6e2249

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

crates/core_arch/src/aarch64/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
//! [arm_ref]: http://infocenter.arm.com/help/topic/com.arm.doc.ihi0073a/IHI0073A_arm_neon_intrinsics_ref.pdf
77
//! [arm_dat]: https://developer.arm.com/technologies/neon/intrinsics
88
9+
#![cfg_attr(
10+
all(target_arch = "aarch64", target_abi = "softfloat"),
11+
// Just allow the warning: anyone soundly using the intrinsics has to enable
12+
// the target feature, and that will generate a warning for them.
13+
allow(aarch64_softfloat_neon)
14+
)]
15+
916
mod mte;
1017
#[unstable(feature = "stdarch_aarch64_mte", issue = "129010")]
1118
pub use self::mte::*;

crates/core_arch/src/arm_shared/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@
4747
//!
4848
//! - [ACLE Q2 2018](https://developer.arm.com/docs/101028/latest)
4949
50+
#![cfg_attr(
51+
all(target_arch = "aarch64", target_abi = "softfloat"),
52+
// Just allow the warning: anyone soundly using the intrinsics has to enable
53+
// the target feature, and that will generate a warning for them.
54+
allow(aarch64_softfloat_neon)
55+
)]
5056
// Only for 'neon' submodule
5157
#![allow(non_camel_case_types)]
5258

0 commit comments

Comments
 (0)