Skip to content

Commit

Permalink
Exempt Arm v7 Neon from subnormal-related tests
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed Sep 12, 2024
1 parent 00c3b6d commit 02f9f87
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/core_simd/tests/ops_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(all(target_arch = "arm", target_feature = "neon")))]
test_helpers::test_unary_mask_elementwise(
&Vector::<LANES>::is_normal,
&Scalar::is_normal,
Expand All @@ -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(all(target_arch = "arm", target_feature = "neon")))]
test_helpers::test_unary_mask_elementwise(
&Vector::<LANES>::is_subnormal,
&Scalar::is_subnormal,
Expand Down

0 comments on commit 02f9f87

Please sign in to comment.