This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/17619] Non-optimal code for -mfpmath=387,sse
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Sep 2004 21:22:19 -0000
- Subject: [Bug target/17619] Non-optimal code for -mfpmath=387,sse
- References: <20040922191917.17619.bangerth@dealii.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-09-22 21:22 -------
> You cannot do this transformation except with -ffast-math.
What do you mean by that? Certainly the addition of a zero floating point constant
can be avoided even without -ffast-math (or other unsafe math operations). If there
should be an overflow or similar during this operation, then it should have triggered the
relevant exceptions already in the multiplication that computed the second addend.
However, I don't want to dwell on this point -- the fact that we have unnecessary stack
moves is what bothers me.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17619