# HG changeset patch # User Bruno Haible # Date 1330262678 -3600 # Node ID 321e99caa67fe2c6433d062fca0941ce0bca8e3f # Parent 81d79089d6a0bcd70b9742a45631ad85e39cc56b floorl-ieee tests: More tests. * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h. (main): Add tests for [MX] shaded specification in POSIX. * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h. (Depends-on): Add isnanl-nolibm. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2012-02-26 Bruno Haible + floorl-ieee tests: More tests. + * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h. + (main): Add tests for [MX] shaded specification in POSIX. + * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h. + (Depends-on): Add isnanl-nolibm. + floor-ieee tests: More tests. * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h. (main): Add tests for [MX] shaded specification in POSIX. diff --git a/modules/floorl-ieee-tests b/modules/floorl-ieee-tests --- a/modules/floorl-ieee-tests +++ b/modules/floorl-ieee-tests @@ -1,10 +1,13 @@ Files: tests/test-floorl-ieee.c tests/minus-zero.h +tests/infinity.h +tests/nan.h tests/macros.h Depends-on: fpucw +isnanl-nolibm float signbit diff --git a/tests/test-floorl-ieee.c b/tests/test-floorl-ieee.c --- a/tests/test-floorl-ieee.c +++ b/tests/test-floorl-ieee.c @@ -19,7 +19,10 @@ #include #include "fpucw.h" +#include "isnanl-nolibm.h" #include "minus-zero.h" +#include "infinity.h" +#include "nan.h" #include "macros.h" int @@ -44,5 +47,13 @@ ASSERT (!!signbit (floorl (-0.3L)) == !!signbit (minus_zerol)); ASSERT (!!signbit (floorl (-0.7L)) == !!signbit (minus_zerol)); + /* [MX] shaded specification in POSIX. */ + + /* NaN. */ + ASSERT (isnanl (floorl (NaNl ()))); + /* Infinity. */ + ASSERT (floorl (Infinityl ()) == Infinityl ()); + ASSERT (floorl (- Infinityl ()) == - Infinityl ()); + return 0; }