about summary refs log tree commit diff
path: root/library/portable-simd
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2024-01-30 03:40:53 +0000
committerAmanieu d'Antras <amanieu@gmail.com>2024-01-30 04:47:01 +0000
commitab8b66166775362dbeb25c8f8898f8760baaf123 (patch)
tree2c4f374b586d4fd19f79b1ed828539b080b2d841 /library/portable-simd
parent31007f51edfd9faf9793046145cfc5986f788b19 (diff)
downloadrust-ab8b66166775362dbeb25c8f8898f8760baaf123.tar.gz
rust-ab8b66166775362dbeb25c8f8898f8760baaf123.zip
Disable conversions between portable_simd and stdarch on big-endian ARM
stdarch no longer provide SIMD on big-endian ARM due to
https://github.com/rust-lang/stdarch/issues/1484
Diffstat (limited to 'library/portable-simd')
-rw-r--r--library/portable-simd/crates/core_simd/src/vendor/arm.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/library/portable-simd/crates/core_simd/src/vendor/arm.rs b/library/portable-simd/crates/core_simd/src/vendor/arm.rs
index ff3b69ccf95..ee5c6421373 100644
--- a/library/portable-simd/crates/core_simd/src/vendor/arm.rs
+++ b/library/portable-simd/crates/core_simd/src/vendor/arm.rs
@@ -7,9 +7,12 @@ use core::arch::arm::*;
 #[cfg(target_arch = "aarch64")]
 use core::arch::aarch64::*;
 
-#[cfg(any(
-    target_arch = "aarch64",
-    all(target_arch = "arm", target_feature = "v7"),
+#[cfg(all(
+    any(
+        target_arch = "aarch64",
+        all(target_arch = "arm", target_feature = "v7"),
+    ),
+    target_endian = "little"
 ))]
 mod neon {
     use super::*;