pdp11.md (lshrsi3, lshrhi3): Use add for decrement.
* config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for decrement. From-SVN: r166493
This commit is contained in:
parent
5923c6c37f
commit
b99fd9f435
|
@ -1,3 +1,8 @@
|
|||
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)
|
||||
|
|
Loading…
Reference in New Issue