This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/21032] [4.0 Regression] With -frounding-math, incorrectly reorders unary minus
- From: "bagnara at cs dot unipr dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Sep 2007 12:32:43 -0000
- Subject: [Bug middle-end/21032] [4.0 Regression] With -frounding-math, incorrectly reorders unary minus
- References: <bug-21032-1710@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #23 from bagnara at cs dot unipr dot it 2007-09-10 12:32 -------
My fault: I forgot to use the -frounding-math option. So, for the "wrong-code"
aspect there is no problem. But the "missed-optimization" bit is still there:
why do we have
fldl 12(%ebp)
fchs
movl 8(%ebp), %eax
fstps -20(%ebp)
flds -20(%ebp)
fstps -4(%ebp)
flds -4(%ebp)
fchs
fstps (%eax)
insted of simply
fldl 12(%ebp)
fchs
fstps -4(%ebp)
flds -4(%ebp)
fchs
fstps (%eax)
?
--
bagnara at cs dot unipr dot it changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |abramobagnara at tin dot it
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21032