From: Bernd Schmidt Date: Mon, 11 Sep 2000 13:13:00 +0000 (+0000) Subject: Fix obvious thinko X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e695931e414bab5105d78004a68bb5a0c00975cc;p=gcc.git Fix obvious thinko From-SVN: r36314 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c22dd3c2860..098a50c5f31 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2000-09-11 Bernd Schmidt + + * reload.c (regno_clobbered_p): Fix thinko in previous change. + 2000-09-10 Stephane Carrez * gcc.1: Document 68hc11 specific options. diff --git a/gcc/reload.c b/gcc/reload.c index d8abd39bef8..848a40d078c 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -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; } }