Skip to content

Commit b1e9599

Browse files
committed
added hypot test for Neon, Axx512
1 parent 11db444 commit b1e9599

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

cfavml/src/danger/test_suite.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ macro_rules! test_suite {
281281
};
282282
}
283283

284-
macro_rules! hypot_tests {
284+
macro_rules! test_hypot {
285285
($im:ident) => {
286286
paste::paste! {
287287
#[test]
@@ -402,7 +402,7 @@ test_cosine_extra!(u64, Fallback);
402402

403403
test_nan_sanity!(f32, Fallback);
404404
test_nan_sanity!(f64, Fallback);
405-
hypot_tests!(Fallback);
405+
test_hypot!(Fallback);
406406

407407
#[cfg(all(target_feature = "avx2", test))]
408408
mod avx2_tests {
@@ -430,7 +430,7 @@ mod avx2_tests {
430430

431431
test_nan_sanity!(f32, Avx2);
432432
test_nan_sanity!(f64, Avx2);
433-
hypot_tests!(Avx2);
433+
test_hypot!(Avx2);
434434
}
435435

436436
#[cfg(all(target_feature = "avx512f", feature = "nightly", test))]
@@ -459,6 +459,7 @@ mod avx512_tests {
459459

460460
test_nan_sanity!(f32, Avx512);
461461
test_nan_sanity!(f64, Avx512);
462+
test_hypot!(Avx512);
462463
}
463464

464465
#[cfg(all(target_feature = "avx2", target_feature = "fma", test))]
@@ -470,7 +471,7 @@ mod avx2fma_tests {
470471

471472
test_cosine_extra!(f32, Avx2Fma);
472473
test_cosine_extra!(f64, Avx2Fma);
473-
hypot_tests!(Avx2Fma);
474+
test_hypot!(Avx2Fma);
474475
}
475476

476477
#[cfg(all(target_feature = "neon", test))]
@@ -501,4 +502,5 @@ mod neon_tests {
501502

502503
test_nan_sanity!(f32, Neon);
503504
test_nan_sanity!(f64, Neon);
505+
test_hypot!(Neon);
504506
}

0 commit comments

Comments
 (0)