This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcc/64677] incorrect result with complex division?
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 20 Jan 2015 19:10:19 +0000
- Subject: [Bug libgcc/64677] incorrect result with complex division?
- Auto-submitted: auto-generated
- References: <bug-64677-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64677
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #6)
> (In reply to Sanjay Patel from comment #5)
> > (In reply to Mikhail Maltsev from comment #3)
> > > So, compile-time result is more precise. BTW, what does the disassembly look
> > > like?
> >
> > In the -O0 case, it looks like all of the math is handled in:
> > call ___ieee_divdc3
>
>
> Is this the one in libgcc or part of Apple's libc? If it is part of Apple's
> libc, then the bug is there. Apple's libc implementation of ___ieee_divdc3
> has known issues IIRC.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42333 . So ___ieee_divdc3 is
always GCC's libgcc implementation.
Can you try this under Linux too, just to double check there?