about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2024-09-11 20:21:09 -0700
committerJubilee Young <workingjubilee@gmail.com>2024-09-11 20:56:02 -0700
commitc080ba539f60f8a3888ddebc52c3db157dd1b2d1 (patch)
tree8adfa1cba345b40b81b89b41188c0aae7c61718c
parent00c3b6d68e1a50bb9323b13ae5cf1ab3820da56d (diff)
downloadrust-c080ba539f60f8a3888ddebc52c3db157dd1b2d1.tar.gz
rust-c080ba539f60f8a3888ddebc52c3db157dd1b2d1.zip
Exempt Arm v7 Neon from subnormal-related tests
-rw-r--r--crates/core_simd/tests/ops_macros.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/core_simd/tests/ops_macros.rs b/crates/core_simd/tests/ops_macros.rs
index 6e64bfcb424..6de78f51e59 100644
--- a/crates/core_simd/tests/ops_macros.rs
+++ b/crates/core_simd/tests/ops_macros.rs
@@ -527,6 +527,9 @@ macro_rules! impl_float_tests {
                 }
 
                 fn is_normal<const LANES: usize>() {
+                    // Arm v7 Neon violates float opsem re: subnormals, see
+                    // https://github.com/rust-lang/portable-simd/issues/439
+                    #[cfg(not(target_arch = "arm"))]
                     test_helpers::test_unary_mask_elementwise(
                         &Vector::<LANES>::is_normal,
                         &Scalar::is_normal,
@@ -535,6 +538,9 @@ macro_rules! impl_float_tests {
                 }
 
                 fn is_subnormal<const LANES: usize>() {
+                    // Arm v7 Neon violates float opsem re: subnormals, see
+                    // https://github.com/rust-lang/portable-simd/issues/439
+                    #[cfg(not(target_arch = "arm"))]
                     test_helpers::test_unary_mask_elementwise(
                         &Vector::<LANES>::is_subnormal,
                         &Scalar::is_subnormal,