msp430.md (ashlhi3): Optimize one bit shifts.
* config/msp430/msp430.md (ashlhi3): Optimize one bit shifts. (ashrhi3): Likewise. (lshrhi3): Likewise. From-SVN: r235410
This commit is contained in:
parent
2de1cf8c4b
commit
9c8a71e668
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2016-04-25 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
|
||||
(ashrhi3): Likewise.
|
||||
(lshrhi3): Likewise.
|
||||
|
||||
2016-04-25 Richard Biener <rguenther@suse.de>
|
||||
|
||||
PR tree-optimization/70780
|
||||
|
|
|
@ -756,6 +756,9 @@
|
|||
&& REG_P (operands[1])
|
||||
&& CONST_INT_P (operands[2]))
|
||||
emit_insn (gen_430x_shift_left (operands[0], operands[1], operands[2]));
|
||||
else if (CONST_INT_P (operands[2])
|
||||
&& INTVAL (operands[2]) == 1)
|
||||
emit_insn (gen_slli_1 (operands[0], operands[1]));
|
||||
else
|
||||
msp430_expand_helper (operands, \"__mspabi_slli\", true);
|
||||
DONE;
|
||||
|
@ -825,6 +828,9 @@
|
|||
&& REG_P (operands[1])
|
||||
&& CONST_INT_P (operands[2]))
|
||||
emit_insn (gen_430x_arithmetic_shift_right (operands[0], operands[1], operands[2]));
|
||||
else if (CONST_INT_P (operands[2])
|
||||
&& INTVAL (operands[2]) == 1)
|
||||
emit_insn (gen_srai_1 (operands[0], operands[1]));
|
||||
else
|
||||
msp430_expand_helper (operands, \"__mspabi_srai\", true);
|
||||
DONE;
|
||||
|
@ -910,6 +916,9 @@
|
|||
&& REG_P (operands[1])
|
||||
&& CONST_INT_P (operands[2]))
|
||||
emit_insn (gen_430x_logical_shift_right (operands[0], operands[1], operands[2]));
|
||||
else if (CONST_INT_P (operands[2])
|
||||
&& INTVAL (operands[2]) == 1)
|
||||
emit_insn (gen_srli_1 (operands[0], operands[1]));
|
||||
else
|
||||
msp430_expand_helper (operands, \"__mspabi_srli\", true);
|
||||
DONE;
|
||||
|
|
Loading…
Add table
Reference in a new issue