]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
fold-const.c (fold): Test vs FLOAT_TYPE_P instead of INTEGRAL_TYPE_P when...
authorRichard Henderson <rth@redhat.com>
Mon, 23 Jul 2001 06:00:06 +0000 (23:00 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 23 Jul 2001 06:00:06 +0000 (23:00 -0700)
        * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
        INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
        arguments.

From-SVN: r44255

gcc/ChangeLog
gcc/fold-const.c

index e066b60b9bf2fa5eeb84353ac70b24dd90281cdf..ad109ffae845c9e1bc49ed3c177da69fe4761c43 100644 (file)
@@ -1,3 +1,9 @@
+2001-07-22  Richard Henderson  <rth@redhat.com>
+
+       * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
+       INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
+       arguments.
+
 2001-07-22  Richard Henderson  <rth@redhat.com>
 
        * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
index 55480d269f4891c54f56b90b0e7fcff54c6c0938..6a606eaa612661a59c30df4253341192bba3515f 100644 (file)
@@ -6516,7 +6516,7 @@ fold (expr)
            case EQ_EXPR:
            case GE_EXPR:
            case LE_EXPR:
-             if (INTEGRAL_TYPE_P (TREE_TYPE (arg0)))
+             if (! FLOAT_TYPE_P (TREE_TYPE (arg0)))
                return constant_boolean_node (1, type);
              code = EQ_EXPR;
              TREE_SET_CODE (t, code);
@@ -6524,7 +6524,7 @@ fold (expr)
 
            case NE_EXPR:
              /* For NE, we can only do this simplification if integer.  */
-             if (! INTEGRAL_TYPE_P (TREE_TYPE (arg0)))
+             if (FLOAT_TYPE_P (TREE_TYPE (arg0)))
                break;
              /* ... fall through ...  */
            case GT_EXPR: