(mark_used_regs, case SUBREG): Only fall through to REG case
authorJim Wilson <wilson@gcc.gnu.org>
Wed, 29 Mar 1995 22:34:41 +0000 (14:34 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Wed, 29 Mar 1995 22:34:41 +0000 (14:34 -0800)
if operand is a REG.

From-SVN: r9247

gcc/flow.c

index 585d240..5ebaf25 100644 (file)
@@ -2385,6 +2385,11 @@ mark_used_regs (needed, live, x, final, insn)
       /* While we're here, optimize this case.  */
       x = SUBREG_REG (x);
 
+      /* Must verify that it is a register, since the RS/6000 port has
+        (subreg:QI (lshift:SI ...)).  */
+      if (GET_CODE (x) != REG)
+       goto retry;
+
       /* ... fall through ... */
 
     case REG: