[Bug c/31530] Incorrect folding of multiplication and sign change when followed by an addition

guillaume dot melquiond at ens-lyon dot fr gcc-bugzilla@gcc.gnu.org
Wed Apr 11 08:43:00 GMT 2007



------- Comment #1 from guillaume dot melquiond at ens-lyon dot fr  2007-04-11 09:43 -------
As a follow-up, it seems the wrong code is generated during the "combine" pass:
the RTL after the "life1" pass is still correct: "(-b) * a + c" (whether
-frounding-math is enabled or not), while the RTL after the "combine" pass is
"c - a * b".


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31530



More information about the Gcc-bugs mailing list