Skip to content

Commit c080ba5

Browse files
Exempt Arm v7 Neon from subnormal-related tests
1 parent 00c3b6d commit c080ba5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/core_simd/tests/ops_macros.rs

+6
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,9 @@ macro_rules! impl_float_tests {
527527
}
528528

529529
fn is_normal<const LANES: usize>() {
530+
// Arm v7 Neon violates float opsem re: subnormals, see
531+
// https://github.com/rust-lang/portable-simd/issues/439
532+
#[cfg(not(target_arch = "arm"))]
530533
test_helpers::test_unary_mask_elementwise(
531534
&Vector::<LANES>::is_normal,
532535
&Scalar::is_normal,
@@ -535,6 +538,9 @@ macro_rules! impl_float_tests {
535538
}
536539

537540
fn is_subnormal<const LANES: usize>() {
541+
// Arm v7 Neon violates float opsem re: subnormals, see
542+
// https://github.com/rust-lang/portable-simd/issues/439
543+
#[cfg(not(target_arch = "arm"))]
538544
test_helpers::test_unary_mask_elementwise(
539545
&Vector::<LANES>::is_subnormal,
540546
&Scalar::is_subnormal,

0 commit comments

Comments
 (0)