Use math-tests.h more in math/test-misc.
This commit is contained in:
parent
3711a167f6
commit
1a8463176c
|
@ -1,3 +1,8 @@
|
||||||
|
2013-06-17 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
|
* math/test-misc.c (main): Do not treat incorrectly rounded
|
||||||
|
conversions as failure unless ROUNDING_TESTS passes.
|
||||||
|
|
||||||
2013-06-15 Joseph Myers <joseph@codesourcery.com>
|
2013-06-15 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
[BZ #15631]
|
[BZ #15631]
|
||||||
|
|
|
@ -1306,7 +1306,11 @@ main (void)
|
||||||
{
|
{
|
||||||
printf ("%La incorrectly rounded to %s as %a\n",
|
printf ("%La incorrectly rounded to %s as %a\n",
|
||||||
ld5 * i, mstr, d5);
|
ld5 * i, mstr, d5);
|
||||||
|
if (ROUNDING_TESTS (long double, mode)
|
||||||
|
&& ROUNDING_TESTS (double, mode))
|
||||||
result = 1;
|
result = 1;
|
||||||
|
else
|
||||||
|
puts ("ignoring this failure");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1322,7 +1326,11 @@ main (void)
|
||||||
if (d7 != nextafter (0.0, 1.0))
|
if (d7 != nextafter (0.0, 1.0))
|
||||||
{
|
{
|
||||||
printf ("%La incorrectly rounded upward to %a\n", ld7, d7);
|
printf ("%La incorrectly rounded upward to %a\n", ld7, d7);
|
||||||
|
if (ROUNDING_TESTS (long double, FE_UPWARD)
|
||||||
|
&& ROUNDING_TESTS (double, FE_UPWARD))
|
||||||
result = 1;
|
result = 1;
|
||||||
|
else
|
||||||
|
puts ("ignoring this failure");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue