Skip to content

Commit

Permalink
Auto merge of #475 - Amanieu:neon_be, r=Amanieu
Browse files Browse the repository at this point in the history
Disable the use of NEON intrinsics on big-endian targets

These are implemented incorrectly in `core::arch`, and should therefore be avoided until they are fixed.
  • Loading branch information
bors committed Oct 18, 2023
2 parents 3d2d163 + f770c59 commit 63a693a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/raw/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ cfg_if! {
))] {
mod sse2;
use sse2 as imp;
} else if #[cfg(all(target_arch = "aarch64", target_feature = "neon"))] {
} else if #[cfg(all(
target_arch = "aarch64",
target_feature = "neon",
// NEON intrinsics are currently broken on big-endian targets.
target_endian = "little",
))] {
mod neon;
use neon as imp;
} else {
Expand Down

0 comments on commit 63a693a

Please sign in to comment.