[Bug target/30315] optimize unsigned-add overflow test on x86 to use cpu flags from addl
rask at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Nov 10 01:32:00 GMT 2007
------- Comment #16 from rask at gcc dot gnu dot org 2007-11-10 01:32 -------
Two testcases which aren't optimized:
unsigned int bad1 (unsigned int a)
{
unsigned int c = a - 1;
if (c > a)
abort ();
else
return c;
}
unsigned int bad2 (unsigned int a)
{
unsigned int c = a - 2;
if (c > a)
abort ();
else
return c;
}
See also <URL:http://gcc.gnu.org/ml/gcc-patches/2007-10/msg01359.html>.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30315
More information about the Gcc-bugs
mailing list