This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug other/63395] Cygwin vs Cygwin64 Floating Point Discrepancy


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63395

--- Comment #11 from bernardwidynski at gmail dot com ---
Thanks for the information.

I looked at the .s assembly files.

32-bit Cygwin uses the "fmul" instruction.

64-bit Cygwin uses the "mulsd" instruction.

I tried -mpc64 on 32-bit Cygwin but got the same results.

On Sat, Sep 27, 2014 at 4:09 PM, mikpelinux at gmail dot com <
gcc-bugzilla@gcc.gnu.org> wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63395
>
> --- Comment #10 from Mikael Pettersson <mikpelinux at gmail dot com> ---
> I strongly suspect 32-bit Cygwin uses x87 by default, while 64-bit Cygwin
> probably uses SSE2 by default.  These two FP implementations are very
> different, and it's not at all surprising to see different results from
> them.
>
> Try compiling with -mpc64 on 32-bit Cygwin.
>
> --
> You are receiving this mail because:
> You reported the bug.
>


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