This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: mips SNaN/QNaN is swapped


On Apr  1, 2003, Richard Henderson <rth at redhat dot com> wrote:

> You've missed the needed change to real_identical.  In this case,
> if canonical, you should ignore the significand.  This implies a
> needed change to real_hash as well.

Err...  But when canonical is set, we know the significand is always
the same, because the get_canonical_[qs]nan functions make it so.

> And further implies that canonical should ignore the existing value
> of sig.

Same thing here.  We know the significand given to a NaN, and we know
it matches the expected behavior of qnan_msb_set.

Anyway, will fix...

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva at {redhat dot com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva at {lsd dot ic dot unicamp dot br, gnu.org}
Free Software Evangelist                Professional serial bug killer


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