"J.C. Pizarro" <[EMAIL PROTECTED]> writes: > /* Given X an unsigned of 32 bits, and Y a bool. Try to translate optimizing > * > * Y = X > 2147483647; to Y = ((signed)X) < 0; > * Y = X >= 2147483648; to Y = ((signed)X) < 0; > * > * [ Another optimization is to Y = (X >> 31) ]
As far as I can tell, you are recommending that gcc generate a different code sequence than it currently does. The most helpful approach you can use for such a suggestion is to open a bug report marked as an enhancement. See http://gcc.gnu.org/bugs.html. Postings to gcc@gcc.gnu.org are not wrong, but they will almost certainly get lost. An entry in the bug database will not get lost. Thanks. Ian