[Bug target/12654] [3.3/3.4 regression] Incorrect comparison code generated for Alpha
falk dot hueffner at student dot uni-tuebingen dot de
gcc-bugzilla@gcc.gnu.org
Mon Oct 27 23:12:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12654
------- Additional Comments From falk dot hueffner at student dot uni-tuebingen dot de 2003-10-27 22:59 -------
Subject: Re: [3.3/3.4 regression] Incorrect comparison code generated for Alpha
"tg at swox dot com" <gcc-bugzilla@gcc.gnu.org> writes:
> This is not good. The compiler will never do unsigned comparisons
> against zero.
Not sure what you mean. If you mean that we never see (gtu x
(const_int 0)), then that's wrong.
> Why didn't you just use the simple and correct patch I supplied?
Because it yields worse code, for example for
int i_lt_0(int i) { if (i < 0) abort(); }
More information about the Gcc-bugs
mailing list