diff options
| author | Jubilee Young <workingjubilee@gmail.com> | 2024-09-11 20:21:09 -0700 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2024-09-11 20:56:02 -0700 |
| commit | c080ba539f60f8a3888ddebc52c3db157dd1b2d1 (patch) | |
| tree | 8adfa1cba345b40b81b89b41188c0aae7c61718c | |
| parent | 00c3b6d68e1a50bb9323b13ae5cf1ab3820da56d (diff) | |
| download | rust-c080ba539f60f8a3888ddebc52c3db157dd1b2d1.tar.gz rust-c080ba539f60f8a3888ddebc52c3db157dd1b2d1.zip | |
Exempt Arm v7 Neon from subnormal-related tests
| -rw-r--r-- | crates/core_simd/tests/ops_macros.rs | 6 |
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, |
