On 01/16/2013 08:57 AM, Eric Botcazou wrote:
Well, I have an Intel manual here that states that any operation on a
QNaN should return a QNaN, which means that also the compare should
return a QNaN when one or both of the arguments is a QNaN.
No, that isn't how comparisons work.  The correct result is 2 according to the
comparison rules of IEEE-754.  I'd suggest reading page 8 of "Lecture Notes on
the Status of IEEE 754" by Kahan:
   http://www.cs.berkeley.edu/~wkahan/ieee754status/IEEE754.PDF

Well, this is just a document of another teacher, this is not the Intel manual. Please read the other mail for me with the output of the 'ftst' instruction.

Reply via email to