This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/17622] Non-optimal code sequence for floating point "x=0; x+=a*b;"
- 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: 23 Sep 2004 01:10:32 -0000
- Subject: [Bug target/17622] Non-optimal code sequence for floating point "x=0; x+=a*b;"
- References: <20040922213444.17622.bangerth@dealii.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-23 01:10 -------
/* Maybe simplify x + 0 to x. The two expressions are equivalent
when x is NaN, infinite, or finite and nonzero. They aren't
when x is -0 and the rounding mode is not towards -infinity,
since (-0) + 0 is then 0. */
So this is invalid.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
Summary|Non-optimal code sequence |Non-optimal code sequence
|for floating point "x=0; |for floating point "x=0;
|x=a*b;" |x+=a*b;"
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17622