or1k: Support for softfloat to emulate hw exceptions
authorStafford Horne <shorne@gmail.com>
Fri, 24 Jan 2020 12:30:31 +0000 (21:30 +0900)
committerStafford Horne <shorne@gmail.com>
Wed, 13 Jan 2021 23:45:01 +0000 (08:45 +0900)
commitb77f6d2fa848eca0aa04ff63aaeb52a54522e2aa
treedd52f739c69f15190ac03ce711adb9083db05949
parente1171c32502372cacc658ddc44a3b04ec8c8ce17
or1k: Support for softfloat to emulate hw exceptions

This allows the openrisc softfloat implementation to set exceptions.
This also sets the correct tininess after rounding value to be
consistent with hardware and simulator implementations.

libgcc/ChangeLog:

* config/or1k/sfp-machine.h (FP_RND_NEAREST, FP_RND_ZERO,
FP_RND_PINF, FP_RND_MINF, FP_RND_MASK, FP_EX_OVERFLOW,
FP_EX_UNDERFLOW, FP_EX_INEXACT, FP_EX_INVALID, FP_EX_DIVZERO,
FP_EX_ALL): New constant macros.
(_FP_DECL_EX, FP_ROUNDMODE, FP_INIT_ROUNDMODE,
FP_HANDLE_EXCEPTIONS): New macros.
(_FP_TININESS_AFTER_ROUNDING): Change to 1.
libgcc/config/or1k/sfp-machine.h