* combine.c (combine_simplify_rtx): Fix order of checks for
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Dec 1999 03:26:55 +0000 (03:26 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Dec 1999 03:26:55 +0000 (03:26 +0000)
        (ashiftrt foo C) -> (lt foo (const_int 0)) simplification.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30894 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/combine.c

index e0696bf..7e76aed 100644 (file)
@@ -1,3 +1,8 @@
+Mon Dec 13 20:25:29 1999  Jeffrey A Law  (law@cygnus.com)
+
+       * combine.c (combine_simplify_rtx): Fix order of checks for
+       (ashiftrt foo C) -> (lt foo (const_int 0)) simplification.
+       
 1999-12-13  Clinton Popetz  <cpopetz@cygnus.com>
 
        * config/arm/arm.md  (*mulsidi3adddi, *umulsidi3adddi) Backed out 
index f3bd234..33de1bf 100644 (file)
@@ -3823,8 +3823,8 @@ combine_simplify_rtx (x, op0_mode, last, in_dest)
         perform the above simplification.  */
 
       if (STORE_FLAG_VALUE == -1
-         && XEXP (x, 1) == const1_rtx
          && 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_combine (GE, mode, XEXP (XEXP (x, 0), 0), const0_rtx);