Skip to content

Commit b89e277

Browse files
committed
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.
1 parent 63a693a commit b89e277

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/raw/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,17 @@ cfg_if! {
2020
if #[cfg(all(
2121
target_feature = "sse2",
2222
any(target_arch = "x86", target_arch = "x86_64"),
23-
not(miri)
23+
not(miri),
2424
))] {
2525
mod sse2;
2626
use sse2 as imp;
2727
} else if #[cfg(all(
2828
target_arch = "aarch64",
2929
target_feature = "neon",
3030
// NEON intrinsics are currently broken on big-endian targets.
31+
// See https://github.com/rust-lang/stdarch/issues/1484.
3132
target_endian = "little",
33+
not(miri),
3234
))] {
3335
mod neon;
3436
use neon as imp;

0 commit comments

Comments
 (0)