Fix clearing ZERO_REG
commitf48068845f391e30be9c0962ab50f70d8c7a4f4d
authorgjl <gjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Jan 2012 12:39:26 +0000 (4 12:39 +0000)
committergjl <gjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Jan 2012 12:39:26 +0000 (4 12:39 +0000)
treec824bcb45c14a6f935a158dd58ff75b45770aba1
parent637533b5d9c3428f489246d9fbde6b17d36be7b0
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182871 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/avr/avr.c
gcc/config/avr/avr.md