This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [ColdFire 21/63] Add *_REGNO_P macros
On Wed, 2007-01-10 at 11:19 +0000, Richard Sandiford wrote:
> The m68k port has cryptic conditions like:
>
> (REGNO (X) ^ 020) >= 8
>
> (which checks whether something is not a hard floating-point register).
> This patch replaces them with more readable *_REGNO_P macros,
> which are then used by later patches in the series.
>
> The patch also replaces a hard-coded 8 with A0_REG.
>
> Richard
>
>
> gcc/
> 200x-xx-xx Kazu Hirata <kazu@codesourcery.com>
> Richard Sandiford <richard@codesourcery.com>
>
> * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
> (FP_REGNO_P): New macros.
> (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
> (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
> (EH_RETURN_STACKADJ_RTX): Use A0_REG.
> * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
OK.
jeff