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

Commit 5e0c840

Browse files
committed
Add an override for failing ceil/floor tests on i586
1 parent 9b68478 commit 5e0c840

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

crates/libm-test/src/precision.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,16 @@ impl MaybeOverride<(f64,)> for SpecialCase {
270270
return XFAIL;
271271
}
272272

273+
if (ctx.fn_ident == Identifier::Ceil || ctx.fn_ident == Identifier::Floor)
274+
&& expected.eq_repr(F::NEG_ZERO)
275+
&& actual.eq_repr(F::ZERO)
276+
&& cfg!(x86_no_sse)
277+
{
278+
// FIXME: the x87 implementations do not keep the distinction between -0.0 and 0.0.
279+
// See https://github.com/rust-lang/libm/pull/404#issuecomment-2572399955
280+
return XFAIL;
281+
}
282+
273283
maybe_check_nan_bits(actual, expected, ctx)
274284
}
275285

0 commit comments

Comments
 (0)