This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/29337] -mfpmath=387 doesn't use fistp for double-to-integer conversion
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Oct 2006 04:45:57 -0000
- Subject: [Bug target/29337] -mfpmath=387 doesn't use fistp for double-to-integer conversion
- References: <bug-29337-12811@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from pinskia at gcc dot gnu dot org 2006-10-05 04:45 -------
(In reply to comment #0)
> This makes a difference if/when the extra precision of 387 makes difference to
> the conversion - which -mfpmath=387 is supposed to prevent.
that is only done when doing lots of math so then you round at the end before
using cvttsd2si which is ok and the correct thing. The cases where rounding is
"wrong" are really undefined anyways.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29337