[Bug c/87128] Wrong Value Generated for m32 without optimization

2018-08-28 Thread neha.gnu.gcc at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87128

--- Comment #4 from Neha Gowda  ---
Thanks for the explanation.

[Bug c/87128] Wrong Value Generated for m32 without optimization

2018-08-28 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87128

Jakub Jelinek  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||jakub at gcc dot gnu.org
 Resolution|--- |DUPLICATE

--- Comment #3 from Jakub Jelinek  ---
Yes.

*** This bug has been marked as a duplicate of bug 323 ***

[Bug c/87128] Wrong Value Generated for m32 without optimization

2018-08-28 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87128

--- Comment #2 from Richard Biener  ---
Dup of 323 then?

[Bug c/87128] Wrong Value Generated for m32 without optimization

2018-08-28 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87128

--- Comment #1 from Jonathan Wakely  ---
1e23 is outside the range where all integers can be represented exactly by a
64-bit IEEE double, and the calculation is imprecise when using i387 floating
point registers.

The expected answer is given when using:

-ffloat-store

or when using:

-msse -mfpmath=sse -fexcess-precision=standard