Skip to content

Commit

Permalink
Add more tests of cosh, sinh.
Browse files Browse the repository at this point in the history
This patch adds some randomly-generated tests of cosh and sinh that
are observed to increase ulps on x86_64.

Tested for x86_64 and x86 and ulps updated accordingly.

	* math/auto-libm-test-in: Add more tests of cosh and sinh.
	* math/auto-libm-test-out: Regenerated.
	* sysdeps/i386/fpu/libm-test-ulps: Update.
	* sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
  • Loading branch information
Joseph Myers committed Mar 24, 2015
1 parent a737e82 commit 239ed6f
Show file tree
Hide file tree
Showing 5 changed files with 578 additions and 18 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
2015-03-24 Joseph Myers <joseph@codesourcery.com>

* math/auto-libm-test-in: Add more tests of cosh and sinh.
* math/auto-libm-test-out: Regenerated.
* sysdeps/i386/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Likewise.

* sysdeps/i386/fpu/libm-test-ulps: Regenerated.
* sysdeps/x86_64/fpu/libm-test-ulps: Likewise.

Expand Down
11 changes: 11 additions & 0 deletions math/auto-libm-test-in
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,7 @@ cosh 0x1p-5
cosh 0x1p-20
cosh -1
cosh 50
cosh -0xb.60713p+0
# GCC bug 59666: results on directed rounding may be incorrect.
cosh max no-test-inline xfail-rounding:ldbl-128ibm
cosh -max no-test-inline xfail-rounding:ldbl-128ibm
Expand Down Expand Up @@ -2089,6 +2090,16 @@ sinh 0x8p-32
sinh 22
sinh 23
sinh 24
sinh -0x7.55d7f8p-4
sinh -0x3.f392f8p-4
sinh 0x1.c56446p+0
sinh 0x6.cac622d51eebcp-4
sinh -0x5.c4cb02389c094p+0
sinh -0x1.646850f515ef2p+0
sinh -0x7.a8c5f68c81fae5dp-4
sinh 0x3.4a037p-4
sinh -0x3.eba6dbcbeceb2p-4
sinh -0x2.55f63p+0

sqrt 0
sqrt -0
Expand Down
Loading

0 comments on commit 239ed6f

Please sign in to comment.