mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Correct "inexact" expectations in lround, llround tests.
I noticed that some of my recently added tests of lround and llround wrongly expected the "inexact" exception to be absent for certain within-range non-integer arguments. (It's unspecified whether this exception is present or not for within-range non-integer arguments; it mustn't be present for integer arguments and out-of-range arguments.) This patch corrects those expectations. Tested for x86_64 and x86. * math/libm-test.inc (lround_test_data): Do not expect the absence of "inexact" for some tests with non-integer arguments. (llround_test_data): Likewise.
This commit is contained in:
@ -1,5 +1,9 @@
|
|||||||
2015-10-08 Joseph Myers <joseph@codesourcery.com>
|
2015-10-08 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
|
* math/libm-test.inc (lround_test_data): Do not expect the absence
|
||||||
|
of "inexact" for some tests with non-integer arguments.
|
||||||
|
(llround_test_data): Likewise.
|
||||||
|
|
||||||
* sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
|
* sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
|
||||||
test.
|
test.
|
||||||
(libc_cv_cc_sse2avx): Likewise.
|
(libc_cv_cc_sse2avx): Likewise.
|
||||||
|
@ -8352,7 +8352,7 @@ static const struct test_f_l_data lround_test_data[] =
|
|||||||
TEST_f_l (lround, 0x7fffffffffffffff.8p0L, IGNORE, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION),
|
TEST_f_l (lround, 0x7fffffffffffffff.8p0L, IGNORE, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION),
|
||||||
# if LDBL_MANT_DIG > 64
|
# if LDBL_MANT_DIG > 64
|
||||||
# if LONG_MAX > 0x7fffffff
|
# if LONG_MAX > 0x7fffffff
|
||||||
TEST_f_l (lround, 0x7fffffffffffffff.4p0L, 0x7fffffffffffffffLL, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
|
TEST_f_l (lround, 0x7fffffffffffffff.4p0L, 0x7fffffffffffffffLL, ERRNO_UNCHANGED),
|
||||||
# else
|
# else
|
||||||
TEST_f_l (lround, 0x7fffffffffffffff.4p0L, IGNORE, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION),
|
TEST_f_l (lround, 0x7fffffffffffffff.4p0L, IGNORE, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION),
|
||||||
# endif
|
# endif
|
||||||
@ -8360,10 +8360,10 @@ static const struct test_f_l_data lround_test_data[] =
|
|||||||
# endif
|
# endif
|
||||||
# if LONG_MAX > 0x7fffffff
|
# if LONG_MAX > 0x7fffffff
|
||||||
# if LDBL_MANT_DIG >= 106
|
# if LDBL_MANT_DIG >= 106
|
||||||
TEST_f_l (lround, 0x7fffffffffffffff.7fffffffffep0L, 0x7fffffffffffffffLL, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
|
TEST_f_l (lround, 0x7fffffffffffffff.7fffffffffep0L, 0x7fffffffffffffffLL, ERRNO_UNCHANGED),
|
||||||
# endif
|
# endif
|
||||||
# if LDBL_MANT_DIG >= 113
|
# if LDBL_MANT_DIG >= 113
|
||||||
TEST_f_l (lround, 0x7fffffffffffffff.7fffffffffffcp0L, 0x7fffffffffffffffLL, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
|
TEST_f_l (lround, 0x7fffffffffffffff.7fffffffffffcp0L, 0x7fffffffffffffffLL, ERRNO_UNCHANGED),
|
||||||
# endif
|
# endif
|
||||||
# else
|
# else
|
||||||
# if LDBL_MANT_DIG >= 106
|
# if LDBL_MANT_DIG >= 106
|
||||||
@ -8651,14 +8651,14 @@ static const struct test_f_L_data llround_test_data[] =
|
|||||||
TEST_f_L (llround, 0x7fffffffffffffffp0L, 0x7fffffffffffffffLL, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
|
TEST_f_L (llround, 0x7fffffffffffffffp0L, 0x7fffffffffffffffLL, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
|
||||||
TEST_f_L (llround, 0x7fffffffffffffff.8p0L, IGNORE, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION),
|
TEST_f_L (llround, 0x7fffffffffffffff.8p0L, IGNORE, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION),
|
||||||
# if LDBL_MANT_DIG > 64
|
# if LDBL_MANT_DIG > 64
|
||||||
TEST_f_L (llround, 0x7fffffffffffffff.4p0L, 0x7fffffffffffffffLL, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
|
TEST_f_L (llround, 0x7fffffffffffffff.4p0L, 0x7fffffffffffffffLL, ERRNO_UNCHANGED),
|
||||||
TEST_f_L (llround, 0x7fffffffffffffff.cp0L, IGNORE, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION),
|
TEST_f_L (llround, 0x7fffffffffffffff.cp0L, IGNORE, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION),
|
||||||
# endif
|
# endif
|
||||||
# if LDBL_MANT_DIG >= 106
|
# if LDBL_MANT_DIG >= 106
|
||||||
TEST_f_L (llround, 0x7fffffffffffffff.7fffffffffep0L, 0x7fffffffffffffffLL, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
|
TEST_f_L (llround, 0x7fffffffffffffff.7fffffffffep0L, 0x7fffffffffffffffLL, ERRNO_UNCHANGED),
|
||||||
# endif
|
# endif
|
||||||
# if LDBL_MANT_DIG >= 113
|
# if LDBL_MANT_DIG >= 113
|
||||||
TEST_f_L (llround, 0x7fffffffffffffff.7fffffffffffcp0L, 0x7fffffffffffffffLL, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
|
TEST_f_L (llround, 0x7fffffffffffffff.7fffffffffffcp0L, 0x7fffffffffffffffLL, ERRNO_UNCHANGED),
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#ifdef TEST_LDOUBLE
|
#ifdef TEST_LDOUBLE
|
||||||
|
Reference in New Issue
Block a user