This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.27.9000-55-g3195833


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  31958338998aba1cca8090839a4c4866366d76cf (commit)
      from  8e554659ad7722ff1d09c6fa68d7df8e75530dc8 (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=31958338998aba1cca8090839a4c4866366d76cf

commit 31958338998aba1cca8090839a4c4866366d76cf
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Fri Feb 9 22:56:35 2018 +0000

    Handle narrowing function sNaN test disabling based on argument format.
    
    Testing narrowing functions for x86_64 with GCC 6 showed up a further
    testsuite fix needed: there is no _Float128 sNaN support before GCC 7
    on x86_64 / x86, and the existing tests of SNAN_TESTS only checked it
    for the return type, not for the argument type.  This patch fixes the
    code to check SNAN_TESTS (ARG_FLOAT) as well (in a variable set in
    libm-test-driver.c, since libm-test-support.c is compiled only once
    for each choice of FLOAT).
    
    Tested for x86_64 and x86 with GCC 6 in conjunction with the main
    patch adding narrowing add functions.
    
    	* math/libm-test-driver.c (snan_tests_arg): New variable.
    	* math/libm-test-support.h (snan_tests_arg): New declaration.
    	* math/libm-test-support.c (enable_test): Check snan_tests_arg.

diff --git a/ChangeLog b/ChangeLog
index 4fe83a6..2063f73 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2018-02-09  Joseph Myers  <joseph@codesourcery.com>
 
+	* math/libm-test-driver.c (snan_tests_arg): New variable.
+	* math/libm-test-support.h (snan_tests_arg): New declaration.
+	* math/libm-test-support.c (enable_test): Check snan_tests_arg.
+
 	* math/Makefile (test-type-pairs): New variable.
 	(test-type-pairs-f64xf128-yes): Likewise.
 	(tests): Add test-narrow-macros.
diff --git a/math/libm-test-driver.c b/math/libm-test-driver.c
index 3713e70..30646da 100644
--- a/math/libm-test-driver.c
+++ b/math/libm-test-driver.c
@@ -27,6 +27,12 @@ const int flag_test_finite = TEST_FINITE;
 const int flag_test_inline = TEST_INLINE;
 const int flag_test_mathvec = TEST_MATHVEC;
 
+#if TEST_NARROW
+const int snan_tests_arg = SNAN_TESTS (ARG_FLOAT);
+#else
+const int snan_tests_arg = SNAN_TESTS (FLOAT);
+#endif
+
 #define STRX(x) #x
 #define STR(x) STRX (x)
 #define STR_FLOAT STR (FLOAT)
diff --git a/math/libm-test-support.c b/math/libm-test-support.c
index e59f15b..1a12ed6 100644
--- a/math/libm-test-support.c
+++ b/math/libm-test-support.c
@@ -985,7 +985,8 @@ enable_test (int exceptions)
     return 0;
   if (flag_test_finite && (exceptions & NON_FINITE) != 0)
     return 0;
-  if (!SNAN_TESTS (FLOAT) && (exceptions & TEST_SNAN) != 0)
+  if ((!SNAN_TESTS (FLOAT) || !snan_tests_arg)
+      && (exceptions & TEST_SNAN) != 0)
     return 0;
   if (flag_test_mathvec && (exceptions & NO_TEST_MATHVEC) != 0)
     return 0;
diff --git a/math/libm-test-support.h b/math/libm-test-support.h
index 64206ab..4263774 100644
--- a/math/libm-test-support.h
+++ b/math/libm-test-support.h
@@ -37,6 +37,7 @@ extern const int flag_test_exceptions;
 extern const int flag_test_finite;
 extern const int flag_test_inline;
 extern const int flag_test_mathvec;
+extern const int snan_tests_arg;
 extern const char test_msg[];
 extern const char qtype_str[];
 extern const char doc[];

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                |    4 ++++
 math/libm-test-driver.c  |    6 ++++++
 math/libm-test-support.c |    3 ++-
 math/libm-test-support.h |    1 +
 4 files changed, 13 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]