stdarch: NEON intrinsics are broken on big-endian
These are currently broken because the order of elements inside vectors is reversed on big-endian systems: the ARM ABI requires that element 0 is located at the highest address of the vector type. However LLVM intrinsics expect element 0 to be located at the lowest address.
See https://llvm.org/docs/BigEndianNEON.html and arm_neon.h in Clang for more details.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 22 (17 by maintainers)
Commits related to this issue
- 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 — committed to Amanieu/rust by Amanieu 3 years ago
- 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 — committed to Amanieu/rust by Amanieu 3 years ago
- 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 — committed to rust-lang/portable-simd by Amanieu 3 years ago
- 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 — committed to rust-lang/portable-simd by Amanieu 3 years ago
- 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 — committed to rust-lang/portable-simd by Amanieu 3 years ago
- 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 — committed to rust-lang/portable-simd by Amanieu 3 years ago
- 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 — committed to rust-lang/portable-simd by Amanieu 3 years ago
- 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 — committed to rust-lang/portable-simd by Amanieu 3 years ago
- Make this crate build on big-endian aarch64. As noted in https://github.com/rust-lang/stdarch/issues/1484, the NEON intrinsics are broken on big-endian aarch64. This is part of fixing rust to build ... — committed to he32/memchr by he32 2 years ago
- src/impls.rs: don't attempt use of neon / SIMD on big-endian aarch64. Neon / SIMD is known to be problematical in rust, ref. https://github.com/rust-lang/stdarch/issues/1484, even though the CPU itse... — committed to he32/zerocopy by he32 2 years ago
- sysutils/dua-cli: make this build on aarch64eb. This is done by avoiding attempts at using neon / SIMD in big-endian mode by patching some of the vendored crates. Neon / SIMD is known to be problemat... — committed to NetBSD/pkgsrc by he32 2 years ago
- src/lib.rs: make this build on big-endian aarch64. Do this by avoiding trying to use neon / SIMD on big-endian aarch64. Neon intrinsics are problematical on big-endian targets, ref. https://github.co... — committed to he32/bytecount by he32 2 years ago
- Disable AES-Neon in big-endian ARM due to rust-lang/stdarch#1484 — committed to sayantn/aes by sayantn 2 years ago
@joshlf - this, amongst other things, is something I am currently working on. Timeline wise - I would hesitate to commit to anything concrete optimistically I hope fairly soon!