Skip to content

Commit

Permalink
Disable the use of NEON intrinsics on Miri
Browse files Browse the repository at this point in the history
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
Amanieu committed Oct 19, 2023
1 parent 63a693a commit b89e277
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 b89e277

Please sign in to comment.