(gen_shifty_op, case ASHIFTRT): Return 0 if shift count is not a constant.
authorJim Wilson <wilson@gcc.gnu.org>
Mon, 3 Apr 1995 22:00:32 +0000 (15:00 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Mon, 3 Apr 1995 22:00:32 +0000 (15:00 -0700)
From-SVN: r9301

gcc/config/sh/sh.c

index 3f35b2f83fcc2230c707329c3701d0ae726ecaa3..b41fd70547810bdc26381370329d829a6d82cdeb 100644 (file)
@@ -1503,6 +1503,9 @@ gen_shifty_op (code, operands)
     {
       /* ??? This code should be moved elsewhere.  */
     case ASHIFTRT:
+      if (GET_CODE (operands[2]) != CONST_INT)
+       return 0;
+
       wrk = gen_reg_rtx (SImode);
 
       if (value == 31)