This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: "make check" failure with gcc 3.1
- From: Andreas Jaeger <aj at suse dot de>
- To: "H . J . Lu" <hjl at lucon dot org>
- Cc: GNU C Library <libc-alpha at sources dot redhat dot com>
- Date: Sun, 20 Jan 2002 08:07:41 +0100
- Subject: Re: "make check" failure with gcc 3.1
- References: <20020119114512.A14036@lucon.org>
"H . J . Lu" <hjl@lucon.org> writes:
> I got this with gcc 3.1 on Linux/x86. I am using
>
> -fstrict-aliasing -freorder-blocks -g -O3
>
> It works fine with gcc 2.96. Is this a gcc 3.1 bug?
Either a GCC 3.1 bug or an instability in the algorithms used, I
suspect the later.
Btw. I get the same results with slightly different compiler flags,
Andreas
>
> H.J.
> ----
> testing float (without inline functions)
> Failure: Test: tanh (0.7) == 0.60436777711716349631
> Result:
> is: 6.04367733001708984375e-01 0x1.356fb000000000000000p-1
> should be: 6.04367792606353759766e-01 0x1.356fb200000000000000p-1
> difference: 5.96046447753906250000e-08 0x1.00000000000000000000p-24
> ulp : 1.0000
> max.ulp : 0.0000
> Failure: Test: tanh (-0.7) == -0.60436777711716349631
> Result:
> is: -6.04367733001708984375e-01 -0x1.356fb000000000000000p-1
> should be: -6.04367792606353759766e-01 -0x1.356fb200000000000000p-1
> difference: 5.96046447753906250000e-08 0x1.00000000000000000000p-24
> ulp : 1.0000
> max.ulp : 0.0000
> Maximal error of `tanh'
> is : 1 ulp
> accepted: 0 ulp
> Failure: Test: Imaginary part of: ccosh (0.7 + 1.2 i) == 0.4548202223691477654 + 0.7070296600921537682 i
> Result:
> is: 7.07029700279235839844e-01 0x1.69ffcc00000000000000p-1
> should be: 7.07029640674591064453e-01 0x1.69ffca00000000000000p-1
> difference: 5.96046447753906250000e-08 0x1.00000000000000000000p-24
> ulp : 1.0000
> max.ulp : 0.0000
> Failure: Test: Real part of: ccosh (-2 - 3 i) == -3.7245455049153225654 + 0.5118225699873846088 i
> Result:
> is: -3.72454571723937988281e+00 -0x1.dcbdea00000000000000p+1
> should be: -3.72454547882080078125e+00 -0x1.dcbde800000000000000p+1
> difference: 2.38418579101562500000e-07 0x1.00000000000000000000p-22
> ulp : 1.0000
> max.ulp : 0.0000
> Failure: Test: Imaginary part of: ctanh (0.7 + 1.2 i) == 1.3472197399061191630 + 0.4778641038326365540 i
> Result:
> is: 4.77864086627960205078e-01 0x1.e9553400000000000000p-2
> should be: 4.77864116430282592773e-01 0x1.e9553600000000000000p-2
> difference: 2.98023223876953125000e-08 0x1.00000000000000000000p-25
> ulp : 1.0000
> max.ulp : 0.0000
> Failure: Test: Real part of: ctanh (-2 - 3 i) == -0.9653858790221331242 + 0.0098843750383224937 i
> Result:
> is: -9.65385913848876953125e-01 -0x1.ee471000000000000000p-1
> should be: -9.65385854244232177734e-01 -0x1.ee470e00000000000000p-1
> difference: 5.96046447753906250000e-08 0x1.00000000000000000000p-24
> ulp : 1.0000
> max.ulp : 0.0000
>
> Test suite completed:
> 2484 test cases plus 2280 tests for exception flags executed.
> 7 errors occurred.
>
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj