Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 3ba9cd5

Browse files
author
Peter Michael Green
committed
only allow x87-specific result in j1f.rs test on x87
1 parent e1762c4 commit 3ba9cd5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

libm/src/math/j1f.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,7 @@ mod tests {
371371
fn test_y1f_2002() {
372372
//allow slightly different result on x87
373373
let res = y1f(2.0000002_f32);
374-
if res != -0.10703231_f32 {
375-
assert_eq!(res, -0.10703229_f32);
376-
}
374+
if cfg!(all(target_arch = "x86", not(target_feature = "sse2"))) && (res == -0.10703231_f32) { return };
375+
assert_eq!(res, -0.10703229_f32);
377376
}
378377
}

0 commit comments

Comments
 (0)