This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: fix for LT comparison
- To: Geoff Keating <geoffk at cygnus dot com>
- Subject: Re: fix for LT comparison
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 17 Jul 2000 01:00:38 -0600
- cc: gcc-patches at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <200007160315.UAA02407@localhost.cygnus.com>you write:
>
> This patch fixes comparisons like
>
> 0x00000000ffffffffLL > 0
>
> which was being considered to be false, in a 32-bit-word ->
> 64-bit-word cross-environment.
>
> Bootstrapped & tested OK on x86 linux native. It's also been tested
> on an older version of the tree (+ cygnus hacks) on AIX32 and AIX64,
> which is where the problem appeared.
>
> OK to commit?
>
> --
> - Geoffrey Keating <geoffk@cygnus.com>
>
> ===File ~/patches/cygnus/rs6000-simplifyLT.patch============
> 2000-07-08 Geoffrey Keating <geoffk@cygnus.com>
>
> * simplify-rtx.c (simplify_relational_operation): Two signed
> values with equal high words are less/greater than each other if
> their low words are less/greater when considered as unsigned.
This is fine. Please install this patch.
Did you happen to have a testcase for this patch that could be included
in the testsuite? If so, could you please make one?
Thanks,
jeffd