This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch,AVR]: Clean-up load non-integer 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, Eric Weddington <eric dot weddington at atmel dot com>
- Date: Mon, 7 Nov 2011 21:57:28 +0400
- Subject: Re: [Patch,AVR]: Clean-up load non-integer constants
- References: <4EB7FF43.50009@gjlay.de>
2011/11/7 Georg-Johann Lay <avr@gjlay.de>:
> This is a patch that cleans up the code for loading CONST or SYMBOL_REF into a
> register.
>
> This code is also needed to be able to load symbols into PSImode registers.
>
> Up to now, this is not needed because there are no 24-bit symbols yet, but it
> is needed for 24-bit address spaces.
>
> Fiddling with 8- and 16-bit constants can all use the generic code in
> output_reload_in_const.
>
> Passed without regressions.
>
> Ok for trunk?
>
> Johann
>
> Â Â Â Â* config/avr/avr.c (output_reload_in_const): Can handle CONSTANT_P
> Â Â Â Ânow, not only CONST_INT and CONST_DOUBLE.
> Â Â Â Â(output_movqi): Use output_reload_in_const.
> Â Â Â Â(output_reload_inhi): Ditto.
> Â Â Â Â(output_reload_insisf): Move assertion to output_reload_in_const.
> Â Â Â Â(avr_out_reload_inpsi): Ditto.
>
Ok.
Denis.