[Bug middle-end/53823] [4.8 Regression] FAIL: gcc.c-torture/execute/930921-1.c execution at -O0 and -O1
danglin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Aug 12 14:30:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53823
--- Comment #22 from John David Anglin <danglin at gcc dot gnu.org> 2012-08-12 14:30:12 UTC ---
Created attachment 27994
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27994
Patch
/* synth_mult does an `unsigned int' multiply. As long as the mode is
less than or equal in size to `unsigned int' this doesn't matter.
If the mode is larger than `unsigned int', then synth_mult works
only if the constant value exactly fits in an `unsigned int' without
any truncation. This means that multiplying by negative values does
not work; results are off by 2^32 on a 32 bit machine. */
More information about the Gcc-bugs
mailing list