about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-06-11 15:44:31 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-06-11 15:44:31 +0000
commitf1d73d30dfe6b5ebec071542835f1b6c2b2f8fcf (patch)
treeb64511b755c6c158911c9f19bce9e7ffabc80edc /sysdeps
parent94aca5e740d6101f91002d027776252340f6abef (diff)
downloadglibc-f1d73d30dfe6b5ebec071542835f1b6c2b2f8fcf.tar.gz
glibc-f1d73d30dfe6b5ebec071542835f1b6c2b2f8fcf.tar.xz
glibc-f1d73d30dfe6b5ebec071542835f1b6c2b2f8fcf.zip
Add exception information to math-tests.h and use it in libm-test.inc.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/math-tests.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/sysdeps/generic/math-tests.h b/sysdeps/generic/math-tests.h
index b1e9fd72a7..89b2260d0f 100644
--- a/sysdeps/generic/math-tests.h
+++ b/sysdeps/generic/math-tests.h
@@ -58,3 +58,21 @@
   (sizeof (TYPE) == sizeof (float) ? ROUNDING_TESTS_float (MODE)	\
    : sizeof (TYPE) == sizeof (double) ? ROUNDING_TESTS_double (MODE)	\
    : ROUNDING_TESTS_long_double (MODE))
+
+/* Indicate whether to run tests of floating-point exceptions for a
+   given floating-point type, given that the exception macros are
+   defined.  All are run unless overridden.  */
+#ifndef EXCEPTION_TESTS_float
+# define EXCEPTION_TESTS_float	1
+#endif
+#ifndef EXCEPTION_TESTS_double
+# define EXCEPTION_TESTS_double	1
+#endif
+#ifndef EXCEPTION_TESTS_long_double
+# define EXCEPTION_TESTS_long_double	1
+#endif
+
+#define EXCEPTION_TESTS(TYPE)					\
+  (sizeof (TYPE) == sizeof (float) ? EXCEPTION_TESTS_float	\
+   : sizeof (TYPE) == sizeof (double) ? EXCEPTION_TESTS_double	\
+   : EXCEPTION_TESTS_long_double)