This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Failing tests in glibc


On Wed, Nov 18, 1998 at 11:05:22AM +0100, Andreas Schwab wrote:
> Kars de Jong <jongk@cs.utwente.nl> writes:
> 
> |> >Submitter-Id:	net
> |> >Originator:	Kars de Jong
> |> >Organization:
> |> >Confidential:	no
> |> >Synopsis:	glibc fails math tests
> |> >Severity:	serious
> |> >Priority:	medium
> |> >Category:	libc
> |> >Class:		sw-bug
> |> >Release:	libc-2.0.102
> |> >Environment:
> |> Host type: m68k-unknown-linux-gnu
> |> System: Linux rincewind 2.1.127 #2 Mon Nov 16 21:51:19 CET 1998 m68k unknown
> |> Architecture: m68k
> |> CPU: 68060 with FPU and MMU
> 
> I cannot reproduce the problems on my 68030/68882.  It may be a bug in the
> FPU emulation for the 68060.  Could you please run the math tests
> (test-{float,double,ldouble}) manually with -v2, so that we can see how
> much the computed values differ from the expected ones?

Okay, here comes the output:

test-float:

testing float (without inline functions)
Fail: atan2 (0.4,0.0003) == 1.57004...
Result:
 is:          1.57004642486572265625e+00   0x1.91ee9000000000000000p+0
 should be:   1.57004630565643310547e+00   0x1.91ee8e00000000000000p+0
 difference:  1.19209289550781250000e-07   0x1.00000000000000000000p-23
Fail: imag(clog(0.7 + i 1.2)) == 1.04272...
Result:
 is:          1.04272198677062988281e+00   0x1.0aefd400000000000000p+0
 should be:   1.04272186756134033203e+00   0x1.0aefd200000000000000p+0
 difference:  1.19209289550781250000e-07   0x1.00000000000000000000p-23
Fail: imag(clog10(0.7 + i 1.2)) == 0.45284...
Result:
 is:          4.52848404645919799805e-01   0x1.cfb77e00000000000000p-2
 should be:   4.52848345041275024414e-01   0x1.cfb77a00000000000000p-2
 difference:  5.96046447753906250000e-08   0x1.00000000000000000000p-24
Fail: imag(cacosh(0.7 + i 1.2)) == 1.13518...
Result:
 is:          1.13518285751342773438e+00   0x1.229b5800000000000000p+0
 should be:   1.13518273830413818359e+00   0x1.229b5600000000000000p+0
 difference:  1.19209289550781250000e-07   0x1.00000000000000000000p-23
Fail: imag(casinh(-2 - i 3)) == -0.96465...
Result:
 is:         -9.64658915996551513672e-01  -0x1.ede7c600000000000000p-1
 should be:  -9.64658498764038085938e-01  -0x1.ede7b800000000000000p-1
 difference:  4.17232513427734375000e-07   0x1.c0000000000000000000p-22
Fail: real(catanh(0.7 + i 1.2)) == 0.26007...
Result:
 is:          2.60074913501739501953e-01   0x1.0a511400000000000000p-2
 should be:   2.60074943304061889648e-01   0x1.0a511600000000000000p-2
 difference:  2.98023223876953125000e-08   0x1.00000000000000000000p-25

Test suite completed:
  2157 test cases plus 2145 tests for exception flags executed.
  6 errors occured.

test-double:

testing double (without inline functions)
Fail: imag(cexp(0.7 + i 1.2)) == 1.87689...
Result:
 is:          1.87689623283481044069e+00   0x1.e07c458202d840000000p+0
 should be:   1.87689623283481021865e+00   0x1.e07c458202d830000000p+0
 difference:  2.22044604925031308085e-16   0x1.00000000000000000000p-52
Fail: imag(clog(0.7 + i 1.2)) == 1.04272...
Result:
 is:          1.04272187836853680309e+00   0x1.0aefd22e6aa360000000p+0
 should be:   1.04272187836853702514e+00   0x1.0aefd22e6aa370000000p+0
 difference:  2.22044604925031308085e-16   0x1.00000000000000000000p-52

Test suite completed:
  2164 test cases plus 2152 tests for exception flags executed.
  2 errors occured.

test-ldouble:

testing long double (without inline functions)
Fail: log (2) == M_LN2
Result:
 is:          6.93147180559945309483e-01   0xb.17217f7d1cf79ad00000p-4
 should be:   6.93147180559945309429e-01   0xb.17217f7d1cf79ac00000p-4
 difference:  5.42101086242752217004e-20   0x8.00000000000000000000p-67
Fail: real(cexp(-2 - i 3)) == -0.13398...
Result:
 is:         -1.33980914929542613466e-01  -0x8.9324affa4658f4100000p-6
 should be:  -1.33980914929542613398e-01  -0x8.9324affa4658f3c00000p-6
 difference:  6.77626357803440271255e-20   0xa.00000000000000000000p-67
Fail: imag(cacosh(-2 - i 3)) == 2.14144...
Result:
 is:          2.14144911111599602028e+00   0x8.90d809292a77e3e00000p-2
 should be:   2.14144911111599601985e+00   0x8.90d809292a77e3c00000p-2
 difference:  4.33680868994201773603e-19   0x8.00000000000000000000p-64
Fail: real(cpow (2 + i0), (10 + i0)) == 1024
Result:
 is:          1.02400000000000000056e+03   0x8.00000000000000500000p+7
 should be:   1.02400000000000000000e+03   0x8.00000000000000000000p+7
 difference:  5.55111512312578270212e-16   0xa.00000000000000000000p-54

Test suite completed:
  2126 test cases plus 2104 tests for exception flags executed.
  4 errors occured.

Some cases seem quite a bit off...

Good luck!

Kars.
-- 
------------------------------------------------------------------------------
Kars de Jong             Signaalkamp rules the waves!       Turrican@Discworld
--------======]**-----|      jongk@cs.utwente.nl      |-----**[======---------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]