mips SNaN/QNaN is swapped

cgd@broadcom.com cgd@broadcom.com
Mon Mar 24 07:32:00 GMT 2003


At Mon, 24 Mar 2003 04:36:25 +0000 (UTC), "Alexandre Oliva" wrote:
> mips doesn't cease to surprise me in its floating-point formats.
> Contrary to the IEEE 754 specifications, the bit that is traditionally
> used to flag a quiet NaN is used to mark a signaling NaN on mips.

Uh, i couldn't find anything in IEEE 754 or 854 about requirements on
the values of NaNs (specifically which are quiet and which are
signalling), other than, of course, the exponent being max and the
faction field being non-zero.

In fact, both say:

> 1.3 Exclusions
> This standard does not specify the following:
> [...]
> 3) Interpretation of the sign and significand fields of NaNs
> [...]


Did i miss something?


cgd



More information about the Gcc-patches mailing list