2011/11/7 Georg-Johann Lay <a...@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.