Commit 66ed03f8 by Jeffrey A Law Committed by Jeff Law

flow.c (find_auto_inc): Verify that we've got a REG before peeking at its regno.

        * flow.c (find_auto_inc): Verify that we've got a REG before
        peeking at its regno.  Fail, don't abort if we can't find
        the increment of the desired register.

From-SVN: r35443
parent 860cd40a
Thu Aug 3 01:05:32 2000 Jeffrey A Law (law@cygnus.com) Thu Aug 3 01:05:32 2000 Jeffrey A Law (law@cygnus.com)
* flow.c (find_auto_inc): Verify that we've got a REG before
peeking at its regno. Fail, don't abort if we can't find
the increment of the desired register.
* pa.md (shadd height reduction patterns/splitters): Remove. * pa.md (shadd height reduction patterns/splitters): Remove.
2000-08-02 Jim Wilson <wilson@cygnus.com> 2000-08-02 Jim Wilson <wilson@cygnus.com>
......
...@@ -5018,12 +5018,12 @@ find_auto_inc (pbi, x, insn) ...@@ -5018,12 +5018,12 @@ find_auto_inc (pbi, x, insn)
if (GET_CODE (y) != PLUS) if (GET_CODE (y) != PLUS)
return; return;
if (REGNO (XEXP (y, 0)) == REGNO (addr)) if (REG_P (XEXP (y, 0)) && REGNO (XEXP (y, 0)) == REGNO (addr))
inc_val = XEXP (y, 1); inc_val = XEXP (y, 1);
else if (REGNO (XEXP (y, 1)) == REGNO (addr)) else if (REG_P (XEXP (y, 1)) && REGNO (XEXP (y, 1)) == REGNO (addr))
inc_val = XEXP (y, 0); inc_val = XEXP (y, 0);
else else
abort (); return;
if (GET_CODE (inc_val) == CONST_INT) if (GET_CODE (inc_val) == CONST_INT)
{ {
......
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