This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: get_condition and conditional move
- To: amylaar at cygnus dot co dot uk (Joern Rennecke)
- Subject: Re: get_condition and conditional move
- From: hjl at lucon dot org (H.J. Lu)
- Date: Tue, 16 Jun 1998 22:37:41 -0700 (PDT)
- Cc: egcs at cygnus dot com
> No, read again. This test applies only when flag_fast_math is zero.
> Reversing a inequality comparison does not work correctly when handling NaNs.
Why? Are you saying
double x, y;
int i;
i = (x == y) : 1 : -1;
is not the same as
double x, y;
int i;
i = (x != y) : -1 : 1;
if x or y is NaN? Do you have a test case for that?
--
H.J. Lu (hjl@gnu.org)