Commit b99fd9f4 by Paul Koning Committed by Paul Koning

pdp11.md (lshrsi3, lshrhi3): Use add for decrement.

* config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for
decrement.

From-SVN: r166493
parent 5923c6c3
2010-11-09 Paul Koning <ni1d@arrl.net>
* config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for
decrement.
2010-11-09 Richard Guenther <rguenther@suse.de>
PR tree-optimization/46177
......@@ -897,7 +897,7 @@
if (GET_CODE (operands[2]) != CONST_INT)
{
r = gen_reg_rtx (HImode);
emit_insn (gen_subhi3 (r, operands [2], GEN_INT (1)));
emit_insn (gen_addhi3 (r, operands [2], GEN_INT (-1)));
emit_insn (gen_ashrsi3 (operands[0], operands[0], r));
}
else if ((unsigned) INTVAL (operands[2]) != 1)
......@@ -1043,7 +1043,7 @@
if (GET_CODE (operands[2]) != CONST_INT)
{
r = gen_reg_rtx (HImode);
emit_insn (gen_subhi3 (r, operands [2], GEN_INT (1)));
emit_insn (gen_addhi3 (r, operands [2], GEN_INT (-1)));
emit_insn (gen_ashrhi3 (operands[0], operands[0], r));
}
else if ((unsigned) INTVAL (operands[2]) != 1)
......
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