Introduce NO_DENORMALS in fp-bit.c
authorBernd Schmidt <bernds@cygnus.co.uk>
Thu, 16 Mar 2000 17:20:57 +0000 (17:20 +0000)
committerBernd Schmidt <crux@gcc.gnu.org>
Thu, 16 Mar 2000 17:20:57 +0000 (17:20 +0000)
From-SVN: r32590

gcc/ChangeLog
gcc/config/fp-bit.c

index 1650a80a0f1740c93fd6a5e8b65c79aaa34e83d4..c9f5687d61fec975be671831449670b9ae445ab3 100644 (file)
@@ -1,5 +1,8 @@
 2000-03-16  Bernd Schmidt  <bernds@cygnus.co.uk>
 
+       * fp-bit.c (_unpack_d): If NO_DENORMALS is defined, anything that
+       has exponent 0 is a zero.
+
        * simplify-rtx.c (hash_rtx, case MEM/REG): Take into account that
        HASH may already be nonzero.  Add code/mode into hash value
        immediately after repeat label.
index ee3c91c1edf96ef57a8faf2025c2897cf6d0651f..d433452194eed2c61cb23e83340df42196d2e645 100644 (file)
@@ -113,7 +113,8 @@ Boston, MA 02111-1307, USA.  */
      US Software goFast library.  If this is not defined, the entry points use
      the same names as libgcc1.c.
    _DEBUG_BITFLOAT: This makes debugging the code a little easier, by adding
-     two integers to the FLO_union_type.  
+     two integers to the FLO_union_type.
+   NO_DENORMALS: Disable handling of denormals.
    NO_NANS: Disable nan and infinity handling
    SMALL_MACHINE: Useful when operations on QIs and HIs are faster
      than on an SI */
@@ -615,7 +616,11 @@ unpack_d (FLO_union_type * src, fp_number_type * dst)
   if (exp == 0)
     {
       /* Hmm.  Looks like 0 */
-      if (fraction == 0)
+      if (fraction == 0
+#ifdef NO_DENORMALS
+         || 1
+#endif
+         )
        {
          /* tastes like zero */
          dst->class = CLASS_ZERO;