Skip to content

Commit

Permalink
Test underflow exceptions in libm-test.inc.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Myers committed May 24, 2012
1 parent 9e0e3d0 commit 80bad0c
Show file tree
Hide file tree
Showing 5 changed files with 241 additions and 154 deletions.
40 changes: 40 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,43 @@
2012-05-24 Joseph Myers <joseph@codesourcery.com>

* math/gen-libm-test.pl (%beautify): Add entries for underflow
exceptions.
* math/libm-test.inc ("Philosophy"): Update comment about
exception testing.
(UNDERFLOW_EXCEPTION): New macro.
(UNDERFLOW_EXCEPTION_OK): Likewise.
(UNDERFLOW_EXCEPTION_FLOAT): Likewise.
(UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
(UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
(UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
(INVALID_EXCEPTION_OK): Update value.
(DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
(OVERFLOW_EXCEPTION_OK): Likewise.
(IGNORE_ZERO_INF_SIGN): Likewise.
(test_exceptions): Handle underflow exceptions.
(acos_test): Update for underflow exception expectations.
(cexp_test): Likewise.
(clog_test): Likewise.
(clog10_test): Likewise.
(csqrt_test): Likewise.
(ctan_test): Likewise.
(ctanh_test): Likewise.
(exp_test): Likewise.
(exp10_test): Likewise.
(exp2_test): Likewise.
(expm1_test): Likewise.
(fma_test): Likewise.
(j0_test): Likewise.
(jn_test): Likewise.
(nexttoward_test): Likewise.
(pow_test): Likewise.
(scalbn_test): Likewise.
(scalbln_test): Likewise.
(tan_test): Likewise.
(y1_test): Likewise.
* sysdeps/i386/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Likewise.

2012-05-23 David S. Miller <davem@davemloft.net>

* sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
Expand Down
6 changes: 6 additions & 0 deletions math/gen-libm-test.pl
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,15 @@
"INVALID_EXCEPTION" => "invalid exception",
"DIVIDE_BY_ZERO_EXCEPTION" => "division by zero exception",
"OVERFLOW_EXCEPTION" => "overflow exception",
"UNDERFLOW_EXCEPTION" => "underflow exception",
"UNDERFLOW_EXCEPTION_FLOAT" => "underflow exception for float",
"UNDERFLOW_EXCEPTION_DOUBLE" => "underflow exception for double",
"UNDERFLOW_EXCEPTION_LDOUBLE_IBM" => "underflow exception for IBM long double",
"INVALID_EXCEPTION_OK" => "invalid exception allowed",
"DIVIDE_BY_ZERO_EXCEPTION_OK" => "division by zero exception allowed",
"OVERFLOW_EXCEPTION_OK" => "overflow exception allowed",
"UNDERFLOW_EXCEPTION_OK" => "underflow exception allowed",
"UNDERFLOW_EXCEPTION_OK_FLOAT" => "underflow exception allowed for float",
"EXCEPTIONS_OK" => "exceptions allowed",
"IGNORE_ZERO_INF_SIGN" => "sign of zero/inf not specified",
"INVALID_EXCEPTION|IGNORE_ZERO_INF_SIGN" => "invalid exception and sign of zero/inf not specified"
Expand Down
Loading

0 comments on commit 80bad0c

Please sign in to comment.