csinh bug?
Steve Ellcey
sellcey@mips.com
Fri Mar 14 17:05:00 GMT 2014
On Fri, 2014-03-14 at 01:14 -0400, Carlos O'Donell wrote:
> On 03/13/2014 02:06 PM, Steve Ellcey wrote:
> > I am curious if anyone else has seen a problem with the complex hyberbolic
> > sin function in glibc? I noticed that the GCC test complex_intrinsic_3.f90
> > was failing for me on MIPS and when I rewrote the test in C it still failed.
> >
> > Since the code is basically just generating a call to csinh and MIPS doesn't
> > have a special implementation of this function, I was wondering if anyone else
> > has seen this problem on other platforms?
>
> I haven't seen it on x86-64, ppc64, s390x, nor aarch64. You'll have to debug
> the test case to determine what's wrong.
>
> Cheers,
> Carlos.
Thanks for looking at this. I have dug into it some more and it looks
like it is not a glibc issue at all, it is a GCC bug and the bug is not
happening when compiling glibc but when compiling my test program. The
complex constant that I am feeding in to csinh is being written out
incorrectly by GCC. For some reason this doesn't matter when doing the
printf before calling csinh but it does affect what gets passed into
csinh. I have submitted a GCC bug:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60528
Steve Ellcey
sellcey@mips.com
More information about the Libc-alpha
mailing list