Allow fesetround failures in math/test-misc.c if ROUNDING_TESTS fails.
This commit is contained in:
parent
c91e082525
commit
b8c792af85
@ -1,5 +1,8 @@
|
|||||||
2013-06-20 Joseph Myers <joseph@codesourcery.com>
|
2013-06-20 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
|
* math/test-misc.c (main): Ignore fesetround failure when failures
|
||||||
|
of subsequent rounding tests would be ignored.
|
||||||
|
|
||||||
[BZ #15654]
|
[BZ #15654]
|
||||||
* math/fedisblxcpt.c (fedisableexcept): Return 0.
|
* math/fedisblxcpt.c (fedisableexcept): Return 0.
|
||||||
* math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
|
* math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
|
||||||
|
@ -1295,7 +1295,11 @@ main (void)
|
|||||||
if (fesetround (mode))
|
if (fesetround (mode))
|
||||||
{
|
{
|
||||||
printf ("failed to set rounding mode to %s\n", mstr);
|
printf ("failed to set rounding mode to %s\n", mstr);
|
||||||
result = 1;
|
if (ROUNDING_TESTS (long double, mode)
|
||||||
|
&& ROUNDING_TESTS (double, mode))
|
||||||
|
result = 1;
|
||||||
|
else
|
||||||
|
puts ("ignoring this failure");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
d5 = ld5 * i;
|
d5 = ld5 * i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user