On 21/8/23 02:32, Richard Henderson wrote:
Motorola treats denormals with explicit integer bit set as
having unbiased exponent 0, unlike Intel which treats it as
having unbiased exponent 1 (like all other IEEE formats).

Add a flag on FloatFmt to differentiate the behaviour.

Reported-by: Keith Packard <kei...@keithp.com>
Signed-off-by: Richard Henderson <richard.hender...@linaro.org>
---
  fpu/softfloat.c                |  9 +++++-
  tests/tcg/m68k/denormal.c      | 53 ++++++++++++++++++++++++++++++++++
  fpu/softfloat-parts.c.inc      |  5 ++--
  tests/tcg/m68k/Makefile.target |  2 +-
  4 files changed, 65 insertions(+), 4 deletions(-)
  create mode 100644 tests/tcg/m68k/denormal.c

Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>


Reply via email to