Commit e695931e by Bernd Schmidt Committed by Bernd Schmidt

Fix obvious thinko

From-SVN: r36314
parent 224e8983
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> 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* gcc.1: Document 68hc11 specific options. * gcc.1: Document 68hc11 specific options.
......
...@@ -6560,7 +6560,7 @@ regno_clobbered_p (regno, insn, mode) ...@@ -6560,7 +6560,7 @@ regno_clobbered_p (regno, insn, mode)
{ {
int test = REGNO (XEXP (PATTERN (insn), 0)); int test = REGNO (XEXP (PATTERN (insn), 0));
return regno >= test && test < endregno; return test >= regno && test < endregno;
} }
if (GET_CODE (PATTERN (insn)) == PARALLEL) if (GET_CODE (PATTERN (insn)) == PARALLEL)
...@@ -6574,7 +6574,7 @@ regno_clobbered_p (regno, insn, mode) ...@@ -6574,7 +6574,7 @@ regno_clobbered_p (regno, insn, mode)
{ {
int test = REGNO (XEXP (elt, 0)); int test = REGNO (XEXP (elt, 0));
if (regno >= test && test < endregno) if (test >= regno && test < endregno)
return 1; return 1;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment