Fix obvious thinko
authorBernd Schmidt <bernds@redhat.co.uk>
Mon, 11 Sep 2000 13:13:00 +0000 (13:13 +0000)
committerBernd Schmidt <crux@gcc.gnu.org>
Mon, 11 Sep 2000 13:13:00 +0000 (13:13 +0000)
From-SVN: r36314

gcc/ChangeLog
gcc/reload.c

index c22dd3c2860b9557743fc59418956713ef70fc49..098a50c5f31bc895c3db14c8353e326b47748173 100644 (file)
@@ -1,3 +1,7 @@
+2000-09-11  Bernd Schmidt  <bernds@redhat.co.uk>
+
+       * reload.c (regno_clobbered_p): Fix thinko in previous change.
+
 2000-09-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
 
        * gcc.1: Document 68hc11 specific options.
index d8abd39bef88d3c383f658a873a60f76a1674e23..848a40d078cd2ffac32ad65a6f686464d4472d91 100644 (file)
@@ -6560,7 +6560,7 @@ regno_clobbered_p (regno, insn, mode)
     {
       int test = REGNO (XEXP (PATTERN (insn), 0));
 
-      return regno >= test && test < endregno;
+      return test >= regno && test < endregno;
     }
 
   if (GET_CODE (PATTERN (insn)) == PARALLEL)
@@ -6574,7 +6574,7 @@ regno_clobbered_p (regno, insn, mode)
            {
              int test = REGNO (XEXP (elt, 0));
              
-             if (regno >= test && test < endregno)
+             if (test >= regno && test < endregno)
                return 1;
            }
        }