From f1d73d30dfe6b5ebec071542835f1b6c2b2f8fcf Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 11 Jun 2013 15:44:31 +0000 Subject: Add exception information to math-tests.h and use it in libm-test.inc. --- ports/ChangeLog.arm | 7 +++++++ ports/sysdeps/arm/math-tests.h | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'ports') diff --git a/ports/ChangeLog.arm b/ports/ChangeLog.arm index 6b0310b..28ebfdf 100644 --- a/ports/ChangeLog.arm +++ b/ports/ChangeLog.arm @@ -1,3 +1,10 @@ +2013-06-11 Joseph Myers + + * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float): + Define to 0. + [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise. + [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise. + 2013-06-10 Joseph Myers * sysdeps/arm/math-tests.h: New file. diff --git a/ports/sysdeps/arm/math-tests.h b/ports/sysdeps/arm/math-tests.h index 6b8e089..6fd17ed 100644 --- a/ports/sysdeps/arm/math-tests.h +++ b/ports/sysdeps/arm/math-tests.h @@ -18,11 +18,15 @@ /* On systems with VFP support, but where glibc is built for soft-float, the libgcc functions used in libc and libm do not - support rounding modes, although fesetround succeeds. */ + support rounding modes, although fesetround succeeds, and do not + support exceptions. */ #ifdef __SOFTFP__ # define ROUNDING_TESTS_float(MODE) ((MODE) == FE_TONEAREST) # define ROUNDING_TESTS_double(MODE) ((MODE) == FE_TONEAREST) # define ROUNDING_TESTS_long_double(MODE) ((MODE) == FE_TONEAREST) +# define EXCEPTION_TESTS_float 0 +# define EXCEPTION_TESTS_double 0 +# define EXCEPTION_TESTS_long_double 0 #endif #include_next -- cgit v1.1