]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR target/50447 ([avr] Better support of AND, OR, XOR and PLUS with constant integ...
authorGeorg-Johann Lay <avr@gjlay.de>
Thu, 22 Sep 2011 09:55:13 +0000 (09:55 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Thu, 22 Sep 2011 09:55:13 +0000 (09:55 +0000)
commit6ebe2d6cf6a609ac9bad183daa9f3d9a920808fa
tree770568b4ef21417ee8cb8c1fbb5cbaee1f91f68a
parent58c1ae3667e753a492bfa224ff9194b9e2ae01ff
re PR target/50447 ([avr] Better support of AND, OR, XOR and PLUS with constant integers for 16- and 32-bit values)

PR target/50447
PR target/50465
* config/avr/avr-protos.h (avr_out_bitop): New prototype.
(avr_popcount_each_byte): New prototype.
* config/avr/avr.c (avr_popcount): New static function.
(avr_popcount_each_byte): New function.
(avr_out_bitop): New function.
(adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
avr_out_bitop.  Cleanup code.
* config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
(Ca4, Co4, Cx4): New constraints.
* config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
alternative.
(andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
(andsi3, iorsi3, xorsi3): Ditto.
(*iorhi3_clobber, *iorsi3_clobber): Remove insns.

From-SVN: r179081
gcc/ChangeLog
gcc/config/avr/avr-protos.h
gcc/config/avr/avr.c
gcc/config/avr/avr.md
gcc/config/avr/constraints.md