Skip to content

Commit

Permalink
Auto merge of #476 - Amanieu:disable_neon_miri, r=Amanieu
Browse files Browse the repository at this point in the history
Disable the use of NEON intrinsics on Miri

Although this happens to work at the moment, there is no guarantee that this will continue to be the case in the future.
  • Loading branch information
bors committed Oct 19, 2023
2 parents ef84e09 + b89e277 commit f3dd78e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/raw/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@ cfg_if! {
if #[cfg(all(
target_feature = "sse2",
any(target_arch = "x86", target_arch = "x86_64"),
not(miri)
not(miri),
))] {
mod sse2;
use sse2 as imp;
} else if #[cfg(all(
target_arch = "aarch64",
target_feature = "neon",
// NEON intrinsics are currently broken on big-endian targets.
// See https://github.com/rust-lang/stdarch/issues/1484.
target_endian = "little",
not(miri),
))] {
mod neon;
use neon as imp;
Expand Down

0 comments on commit f3dd78e

Please sign in to comment.