This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: get_condition and conditional move


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]