[Bug middle-end/33779] [4.3 Regression] folds unsigned multiplication == 0 to true
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Oct 15 13:31:00 GMT 2007
------- Comment #2 from rguenth at gcc dot gnu dot org 2007-10-15 13:31 -------
whoops, make the testcase in comment #1
int foo(int i)
{
return ((int)((unsigned)(i + 1) * 4)) / 4;
}
extern void abort(void);
int main()
{
if (foo(0x3fffffff) != 0)
abort ();
return 0;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33779
More information about the Gcc-bugs
mailing list