re PR target/50358 (AVR: Implement [u]maddqihi4 [u]msubqihi4 patterns on the enhanced...
authorGeorg-Johann Lay <avr@gjlay.de>
Fri, 16 Sep 2011 18:27:10 +0000 (18:27 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Fri, 16 Sep 2011 18:27:10 +0000 (18:27 +0000)
commit1b65da7dfd8fca8ba99c6af6cdbc4b1a067b8620
tree0700ffb1a342f14f27c505db50d258963e552953
parent71743a68ece25642e8f00467bc2e0ac58fb0b970
re PR target/50358 (AVR: Implement [u]maddqihi4 [u]msubqihi4 patterns on the enhanced core)

PR target/50358
* config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
(*maddqi4, *maddqi4.const): New insns.
(*msubqi4, *msubqi4.const): New insns.
* config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
PLUS:QI and MINUS:QI.  Increase costs of multiply-add/-sub for
HImode by 1 in the case of multiplying with a CONST_INT.
Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.

From-SVN: r178912
gcc/ChangeLog
gcc/config/avr/avr.c
gcc/config/avr/avr.md