fpu icon indicating copy to clipboard operation
fpu copied to clipboard

Wrong result for ADD operation: (-0) + (-0) returns +0 instead of (-0)

Open ntuszynski opened this issue 6 years ago • 2 comments

Hello, FPU module computes wrong results for the ADD operation of (-0) and (-0). The returned result is (+0) instead of (-0) according to the IEEE standard BR, Nicolae

ntuszynski avatar Mar 18 '19 16:03 ntuszynski

Same is valid for SUB operation

ntuszynski avatar Mar 18 '19 16:03 ntuszynski

This might be a similar problem to https://github.com/pulp-platform/fpu/issues/5 - it seems that there have been done some aggressive optimizations.

tovine avatar Mar 18 '19 16:03 tovine