about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-11-04 21:30:26 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-11-04 21:30:26 +0000
commite3a0002094417b331993f46064924862b17811c0 (patch)
tree02e50ee73f77d75fc927d3e4f3aee5751fa4ba39 /ChangeLog
parent6fdd5d65c58e8c98960aa2249b1fb1546e2c256a (diff)
downloadglibc-e3a0002094417b331993f46064924862b17811c0.tar.gz
glibc-e3a0002094417b331993f46064924862b17811c0.tar.xz
glibc-e3a0002094417b331993f46064924862b17811c0.zip
Refactor libm-test inline tests disabling.
This patch refactors how libm-test.inc handles disabling
errno/exception handling tests, and some other tests, for
__FAST_MATH__ inline function tests.

The macro TEST_INLINE is changed from being defined/undefined to being
defined to 1 or 0, so that it can be tested in "if" conditionals
instead of #if.  For tests of errno and exception setting, separate
macros TEST_ERRNO and TEST_EXCEPTIONS are added, and TEST_ERRNO is
also used in the disabling of errno testing for vector function
tests.  The relevant conditionals are moved up a function, so that
they take effect before the code that counts the number of tests, so
the inline function tests now accurately report that 0 tests for
exceptions and errno were executed (whereas they previously reported a
large number desipte not running any such tests).

Tested for x86_64 and x86.

	* math/test-math-errno.h: New file.
	* math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
	empty.
	(TEST_ERRNO): New macro.
	(TEST_EXCEPTIONS): Likewise.
	* math/test-math-no-inline.h (TEST_INLINE): Likewise.
	(TEST_EXCEPTIONS): Likewise.
	* math/test-math-vector.h (TEST_ERRNO): Likewise.
	* math/test-double.c: Include "test-math-errno.h".
	* math/test-float.c: Likewise.
	* math/test-ldouble.c: Likewise.
	* math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
	code unconditional.
	(test_exceptions): Only run code if TEST_EXCEPTIONS.
	(test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
	unconditional.
	(test_errno): Only run code if TEST_ERRNO.
	(enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog21
1 files changed, 21 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b958f2c286..eb29519247 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,24 @@
+2015-11-04  Joseph Myers  <joseph@codesourcery.com>
+
+	* math/test-math-errno.h: New file.
+	* math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
+	empty.
+	(TEST_ERRNO): New macro.
+	(TEST_EXCEPTIONS): Likewise.
+	* math/test-math-no-inline.h (TEST_INLINE): Likewise.
+	(TEST_EXCEPTIONS): Likewise.
+	* math/test-math-vector.h (TEST_ERRNO): Likewise.
+	* math/test-double.c: Include "test-math-errno.h".
+	* math/test-float.c: Likewise.
+	* math/test-ldouble.c: Likewise.
+	* math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
+	code unconditional.
+	(test_exceptions): Only run code if TEST_EXCEPTIONS.
+	(test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
+	unconditional.
+	(test_errno): Only run code if TEST_ERRNO.
+	(enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
+
 2015-11-04  Florian Weimer  <fweimer@redhat.com>
 
 	* nptl/tst-once5.cc: Remove attribution.