diff options
author | Stafford Horne <shorne@gmail.com> | 2021-10-21 22:11:27 +0900 |
---|---|---|
committer | Stafford Horne <shorne@gmail.com> | 2021-10-23 05:57:16 +0900 |
commit | aa41680e481456917824e3794c526521b9520589 (patch) | |
tree | 2aefa84ca702efe2b81f5a4e46d63292c2040252 /libgcc | |
parent | 690180eb4b35df3f4b5def690878ecaeb5492e41 (diff) | |
download | gcc-aa41680e481456917824e3794c526521b9520589.tar.gz |
or1k: Update FPU to specify detect tininess before rounding
This was not defined in the spec and not consistent in the
implementation causing incosistent behavior. After review we have
updated the CPU implementations and proposed the spec be updated to
specific that FPU tininess checks check for tininess before roudning.
Architecture change draft:
https://openrisc.io/proposals/p18-fpu-tininess
libgcc/ChangeLog:
* config/or1k/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
Change to 0.
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/config/or1k/sfp-machine.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgcc/config/or1k/sfp-machine.h b/libgcc/config/or1k/sfp-machine.h index eebe5b0578e..162c6bc5326 100644 --- a/libgcc/config/or1k/sfp-machine.h +++ b/libgcc/config/or1k/sfp-machine.h @@ -85,7 +85,7 @@ do { \ #define __BYTE_ORDER __BIG_ENDIAN -#define _FP_TININESS_AFTER_ROUNDING 1 +#define _FP_TININESS_AFTER_ROUNDING 0 /* Define ALIASNAME as a strong alias for NAME. */ # define strong_alias(name, aliasname) _strong_alias(name, aliasname) |