Skip to content

Commit 6d198cf

Browse files
Exempt Arm v7 Neon from float testing
1 parent 00c3b6d commit 6d198cf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/core_simd/tests/ops_macros.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,9 @@ macro_rules! impl_float_tests {
526526
);
527527
}
528528

529+
// FIXME: v7 Arm Neon flushes subnormals, violating Rust float opsem
530+
// see https://github.com/rust-lang/portable-simd/issues/439
531+
#[cfg(not(all(target_arch = "arm", target_feature = "neon")))]
529532
fn is_normal<const LANES: usize>() {
530533
test_helpers::test_unary_mask_elementwise(
531534
&Vector::<LANES>::is_normal,
@@ -534,6 +537,9 @@ macro_rules! impl_float_tests {
534537
);
535538
}
536539

540+
// FIXME: v7 Arm Neon flushes subnormals, violating Rust float opsem
541+
// see https://github.com/rust-lang/portable-simd/issues/439
542+
#[cfg(not(all(target_arch = "arm", target_feature = "neon")))]
537543
fn is_subnormal<const LANES: usize>() {
538544
test_helpers::test_unary_mask_elementwise(
539545
&Vector::<LANES>::is_subnormal,

0 commit comments

Comments
 (0)