This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch,AVR]: Clean-up loading HI constants.
- From: Denis Chertykov <chertykov at gmail dot com>
- To: Georg-Johann Lay <avr at gjlay dot de>
- Cc: gcc-patches at gcc dot gnu dot org, Anatoly Sokolov <aesok at post dot ru>, Eric Weddington <eric dot weddington at atmel dot com>
- Date: Sun, 25 Sep 2011 22:25:23 +0400
- Subject: Re: [Patch,AVR]: Clean-up loading HI constants.
- References: <4E7F695A.5030906@gjlay.de>
2011/9/25 Georg-Johann Lay <avr@gjlay.de>:
> This is just a code clean-up that deals with loading 16-bit constants (HImode).
>
> o Length adjustment is triggered by insn attribute "adjust_len"
>
> o To print the constant output_movhi can use output_reload_inhi
>
> o output_reload_inhi can use the same function as output_reload_insisf uses,
> Âjust a small change is needed when handling (reg:SI/SF 14)
>
> o That function can use avr_popcount_each_byte to detect if scratch needed
>
> o avr_popcount_each_byte is extended to handle float mode for that
>
> Passed without regression.
>
> Ok to install?
Please, commit.
Denis.