Commit 9a4bdb86 by Jim Wilson

(gen_shifty_op, case ASHIFTRT): Return 0 if shift count is not a constant.

From-SVN: r9301
parent 08fda982
...@@ -1503,6 +1503,9 @@ gen_shifty_op (code, operands) ...@@ -1503,6 +1503,9 @@ gen_shifty_op (code, operands)
{ {
/* ??? This code should be moved elsewhere. */ /* ??? This code should be moved elsewhere. */
case ASHIFTRT: case ASHIFTRT:
if (GET_CODE (operands[2]) != CONST_INT)
return 0;
wrk = gen_reg_rtx (SImode); wrk = gen_reg_rtx (SImode);
if (value == 31) if (value == 31)
......
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