This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: Math test failure (still) on m68k
- To: Kars de Jong <jongk@linux-m68k.org>
- Subject: Re: Math test failure (still) on m68k
- From: Andreas Jaeger <aj@arthur.rhein-neckar.de>
- Date: 06 Sep 1999 16:25:17 +0200
- Cc: libc-alpha@sourceware.cygnus.com
- References: <19990906141302.A3285@rincewind.discworld.org>
>>>>> Kars de Jong writes:
> Hi,
> Well, I hoped 'make check' would not fail, but it did with test-float and
> test-ifloat. Looks like the deltas still aren't correct for Linux/m68k.
Glad to hear that the other problems are fixed now.
> Did work with the double versions.
> testing float (without inline functions)
> Fail: j0 (2.0) = 0.22389...
> Result:
> is: 2.23890811204910278320e-01 0x1.ca874400000000000000p-3
> should be: 2.23890781402587890625e-01 0x1.ca874000000000000000p-3
> difference: 2.98023223876953125000e-08 0x1.00000000000000000000p-25
> Fail: jn (0, 2.0) = 0.22389...
> Result:
> is: 2.23890811204910278320e-01 0x1.ca874400000000000000p-3
> should be: 2.23890781402587890625e-01 0x1.ca874000000000000000p-3
> difference: 2.98023223876953125000e-08 0x1.00000000000000000000p-25
> Fail: jn (3, 2.0) = 0.12894...
> Result:
> is: 1.28943279385566711426e-01 0x1.08136a00000000000000p-3
> should be: 1.28943249583244323730e-01 0x1.08136600000000000000p-3
> difference: 2.98023223876953125000e-08 0x1.00000000000000000000p-25
> Fail: jn (10, 2.0) = 2.515...*10^-7
> Result:
> is: 2.51538750717372749932e-07 0x1.0e167200000000000000p-22
> should be: 2.51538637030535028316e-07 0x1.0e166a00000000000000p-22
> difference: 1.13686837721616029739e-13 0x1.00000000000000000000p-43
> Test suite completed:
> 2278 test cases plus 2266 tests for exception flags executed.
> 4 errors occured.
I'm appending a patch. Please check that it works now.
Thanks,
Andreas
1999-09-06 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* math/libm-test.c (j0_test): Add some deltas for m68k.
(jn_test): Likewise.
--- math/libm-test.c.~4~ Wed Aug 25 18:11:07 1999
+++ math/libm-test.c Mon Sep 6 16:24:00 1999
@@ -5522,7 +5522,7 @@
check_eps ("j0 (1.5) = 0.51182...", FUNC(j0) (1.5), 0.51182767173591812875,
CHOOSE (0, 0, 6e-8));
check_eps ("j0 (2.0) = 0.22389...", FUNC(j0) (2.0), 0.22389077914123566805,
- CHOOSE(0, 3e-17, 1.5e-8));
+ CHOOSE(0, 3e-17, 3e-8));
check_eps ("j0 (8.0) = 0.17165...", FUNC(j0) (8.0), 0.17165080713755390609,
CHOOSE(0, 0, 1.5e-8));
check_eps ("j0 (10.0) = -0.24593...", FUNC(j0) (10.0), -0.24593576445134833520,
@@ -5581,7 +5581,7 @@
check_eps ("jn (0, 1.5) = 0.51182...", FUNC(jn) (0, 1.5),
0.51182767173591812875, CHOOSE (0, 0, 6e-8));
check_eps ("jn (0, 2.0) = 0.22389...", FUNC(jn) (0, 2.0), 0.22389077914123566805,
- CHOOSE(0, 3e-17, 1.5e-8));
+ CHOOSE(0, 3e-17, 3e-8));
check_eps ("jn (0, 8.0) = 0.17165...", FUNC(jn) (0, 8.0), 0.17165080713755390609,
CHOOSE(0, 0, 1.5e-8));
check_eps ("jn (0, 10.0) = -0.24593...", FUNC(jn) (0, 10.0), -0.24593576445134833520,
@@ -5621,7 +5621,7 @@
check_eps ("jn (3, 1.0) = 0.01956...", FUNC(jn) (3, 1.0),
0.019563353982668405919, CHOOSE (0, 0, 1.9e-9));
check_eps ("jn (3, 2.0) = 0.12894...", FUNC(jn) (3, 2.0), 0.12894324947440205110,
- CHOOSE(0, 3e-17, 1.5e-8));
+ CHOOSE(0, 3e-17, 3e-8));
check_eps ("jn (3, 10.0) = 0.05837...", FUNC(jn) (3, 10.0), 0.058379379305186812343,
CHOOSE(0, 3e-17, 1.9e-8));
@@ -5639,7 +5639,7 @@
check_eps ("jn (10, 1.0) = 2.630...*10^-11", FUNC(jn) (10, 1.0), 0.26306151236874532070e-9,
CHOOSE(0, 0, 5.6e-17));
check_eps ("jn (10, 2.0) = 2.515...*10^-7", FUNC(jn) (10, 2.0), 0.25153862827167367096e-6,
- CHOOSE(0, 2e-22, 9e-14));
+ CHOOSE(0, 2e-22, 2e-13));
check_eps ("jn (10, 10.0) = 0.20748...", FUNC(jn) (10, 10.0), 0.20748610663335885770,
CHOOSE(0, 2e-16, 1.4e-7));
}
--
Andreas Jaeger aj@arthur.rhein-neckar.de jaeger@informatik.uni-kl.de
for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de