combine.c (combine_simplify_rtx): Update comment and remove erroneous test.
authorGraham Stott <grahams@redhat.com>
Wed, 8 Aug 2001 06:15:20 +0000 (06:15 +0000)
committerGraham Stott <grahams@gcc.gnu.org>
Wed, 8 Aug 2001 06:15:20 +0000 (06:15 +0000)
* combine.c (combine_simplify_rtx): Update comment and
remove erroneous test.

From-SVN: r44703

gcc/ChangeLog
gcc/combine.c

index b995be20fa5ab3ac85e54849950bf46cc42aeb86..329aad73351fecd99fd4e37dfabbaaba2ac5edc1 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-08  Graham Stott  <grahams@redhat.com>
+
+       * combine.c (combine_simplify_rtx): Update comment and
+       remove erroneous test.
+
 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
 
        * cppinit.c (cpp_finish): Pop the final buffer without comment.
index 62ab3aa7c6e4de233bd2983406f3d75ebeca813b..81231804823d76fd8e1235f27e3fd57b8bd0ac44 100644 (file)
@@ -3856,13 +3856,12 @@ combine_simplify_rtx (x, op0_mode, last, in_dest)
                                              XEXP (XEXP (x, 0), 1))))
        return reversed;
 
-      /* (ashiftrt foo C) where C is the number of bits in FOO minus 1
-        is (lt foo (const_int 0)) if STORE_FLAG_VALUE is -1, so we can
+      /* (not (ashiftrt foo C)) where C is the number of bits in FOO minus 1
+        is (ge foo (const_int 0)) if STORE_FLAG_VALUE is -1, so we can
         perform the above simplification.  */
 
       if (STORE_FLAG_VALUE == -1
          && GET_CODE (XEXP (x, 0)) == ASHIFTRT
-         && XEXP (x, 1) == const1_rtx
          && GET_CODE (XEXP (XEXP (x, 0), 1)) == CONST_INT
          && INTVAL (XEXP (XEXP (x, 0), 1)) == GET_MODE_BITSIZE (mode) - 1)
        return gen_rtx_GE (mode, XEXP (XEXP (x, 0), 0), const0_rtx);