From: Jim Wilson Date: Mon, 3 Apr 1995 22:00:32 +0000 (-0700) Subject: (gen_shifty_op, case ASHIFTRT): Return 0 if shift count is not a constant. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a4bdb86498b8c974e66198c0126ccfbccfee086;p=gcc.git (gen_shifty_op, case ASHIFTRT): Return 0 if shift count is not a constant. From-SVN: r9301 --- diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index 3f35b2f83fc..b41fd705478 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -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)