From b89e27731dd9ecd32f103b2226a0dfe1fff87ee4 Mon Sep 17 00:00:00 2001 From: Amanieu d'Antras Date: Thu, 19 Oct 2023 17:31:14 +0100 Subject: [PATCH] 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. --- src/raw/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/raw/mod.rs b/src/raw/mod.rs index c50d8c5fe..5d6778200 100644 --- a/src/raw/mod.rs +++ b/src/raw/mod.rs @@ -20,7 +20,7 @@ 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; @@ -28,7 +28,9 @@ cfg_if! { 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;