This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: get_condition and conditional move
- To: "H.J. Lu" <hjl at lucon dot org>, Joern Rennecke <amylaar at cygnus dot co dot uk>
- Subject: Re: get_condition and conditional move
- From: Richard Henderson <rth at cygnus dot com>
- Date: Wed, 17 Jun 1998 01:32:22 -0700
- Cc: egcs at cygnus dot com
- References: <199806081100.MAA26773@phal.cygnus.co.uk> <m0ymAuj-00026AC@ocean.lucon.org>
- Reply-To: Richard Henderson <rth at cygnus dot com>
On Tue, Jun 16, 1998 at 10:37:41PM -0700, H.J. Lu wrote:
> > Reversing a inequality comparison does not work correctly when handling
> > NaNs.
>
> Why? Are you saying
> i = (x == y) : 1 : -1;
> is not the same as
> i = (x != y) : -1 : 1;
> if x or y is NaN?
No, inequality -- <, >, <=, >=. And yes, (<) != !(>=);
rather (<) == !(isgreaterequal).
r~