This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.22-346-gfd91891
- From: jsm28 at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 8 Oct 2015 17:25:10 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.22-346-gfd91891
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via fd91891a5091b5f54680180dc0c8e91827f63c70 (commit)
from 1b12cd7f4d210a743155d779b2225a0c18c416ff (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=fd91891a5091b5f54680180dc0c8e91827f63c70
commit fd91891a5091b5f54680180dc0c8e91827f63c70
Author: Joseph Myers <joseph@codesourcery.com>
Date: Thu Oct 8 17:24:49 2015 +0000
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.
diff --git a/ChangeLog b/ChangeLog
index 82a3f5f..501fa2d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
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
test.
(libc_cv_cc_sse2avx): Likewise.
diff --git a/math/libm-test.inc b/math/libm-test.inc
index fe74e28..cb738ca 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -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),
# if LDBL_MANT_DIG > 64
# 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
TEST_f_l (lround, 0x7fffffffffffffff.4p0L, IGNORE, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION),
# endif
@@ -8360,10 +8360,10 @@ static const struct test_f_l_data lround_test_data[] =
# endif
# if LONG_MAX > 0x7fffffff
# 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
# 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
# else
# 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, 0x7fffffffffffffff.8p0L, IGNORE, NO_INEXACT_EXCEPTION|INVALID_EXCEPTION),
# 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),
# endif
# 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
# 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
#ifdef TEST_LDOUBLE
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 4 ++++
math/libm-test.inc | 12 ++++++------
2 files changed, 10 insertions(+), 6 deletions(-)
hooks/post-receive
--
GNU C Library master sources