Re: [PATCH 2/2]: FastFPE 'cmf' fix for zero comparisons

2002-10-03 Thread Paul Walmsley
On Thu, 26 Sep 2002, Paul Walmsley wrote: > FastFPE's implementation of the 'cmf' and 'cnf' opcodes incorrectly treat > +0 and -0 as inequal numbers, which violates IEEE 754. It turns out that this bug has already been fixed with patch 1128. (I miseed it since I

[PATCH 2/2]: FastFPE 'cmf' fix for zero comparisons

2002-09-26 Thread Paul Walmsley
FastFPE's implementation of the 'cmf' and 'cnf' opcodes incorrectly treat +0 and -0 as inequal numbers, which violates IEEE 754. The enclosed patch fixes this bug by testing for the magic exponent that indicates 'zero' before testing the signs of the comparison operands. Minimal test cases th

[PATCH 1/2]: FastFPE 'lfm' fix for denormalized numbers

2002-09-26 Thread Paul Walmsley
FastFPE's implementation of the lfm opcode ('load floating-point multiple') marks all floating-point numbers that it loads as normalized. Unfortunately, zero and infinity are denormalized numbers, and FastFPE's lfm will therefore corrupt any stored zero or infinity values reloaded from memory. Th