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


> 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)


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