Fix two testsuite failures on i586-pc-linux-gnu

Richard Henderson rth@redhat.com
Mon May 13 21:12:00 GMT 2002


On Tue, May 14, 2002 at 03:10:55AM +0200, Eric Botcazou wrote:
> This testcase can obviously be better handled at the semantics level,
> because i < ~0 is nothing else than i != ~0, and this latter variant
> is not prone to the same optimization bug. After looking into the
> constant folding code, I found that the transformation is already
> implemented (fold-const.c: 6734 and below) but it is shadowed by
> another one (fold-const.c: 6493 and below).

Good catch.

Does it work instead to move the 

      /* An unsigned comparison against 0 can be simplified.  */

and 

      /* Comparisons with the highest or lowest possible integer of
         the specified size will have known values and an unsigned
         <= 0x7fffffff can be simplified.  */

tests up?


r~



More information about the Gcc-patches mailing list