Fix clearing ZERO_REG
authorGeorg-Johann Lay <avr@gjlay.de>
Wed, 4 Jan 2012 12:39:26 +0000 (12:39 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Wed, 4 Jan 2012 12:39:26 +0000 (12:39 +0000)
commit299c4b5f8853aa54f17ed38602aced0af0f5b503
treec824bcb45c14a6f935a158dd58ff75b45770aba1
parent74d1a34e8600c3b8254eb198ef450e761598a18c
Fix clearing ZERO_REG

Fix clearing ZERO_REG
* config/avr/avr.md (cc): Add alternative "ldi".
(movqi_insn): Use it in cc attribute.
* config/avr/avr.c (notice_update_cc): Handle CC_LDI.
(output_reload_in_const): Use CLR to move 0 to ZERO_REG.
(output_reload_insisf): Use ZERO_REG to pre-clear register.

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