]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
or1k: Update FPU to specify detect tininess before rounding
authorStafford Horne <shorne@gmail.com>
Thu, 21 Oct 2021 13:11:27 +0000 (22:11 +0900)
committerStafford Horne <shorne@gmail.com>
Fri, 22 Oct 2021 20:57:16 +0000 (05:57 +0900)
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.

libgcc/config/or1k/sfp-machine.h

index eebe5b0578edaceaedc48ecce5cdda76fe788855..162c6bc532623f978009cf32d6c9a94cce82476f 100644 (file)
@@ -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)