From: Richard Sandiford Date: Thu, 9 Sep 2004 13:48:23 +0000 (+0000) Subject: * config/frv/frv.c (acc_operand, accg_operand): Use REGNO. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a88ebca7670b70c245035a99fd17051f329820f;p=gcc.git * config/frv/frv.c (acc_operand, accg_operand): Use REGNO. From-SVN: r87239 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8e450d514ae..c7d6c452f72 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-09-09 Richard Sandiford + + * config/frv/frv.c (acc_operand, accg_operand): Use REGNO. + 2004-09-09 Jan Hubicka middle-end/17128 diff --git a/gcc/config/frv/frv.c b/gcc/config/frv/frv.c index 1845cc485d9..c3d5f5e1723 100644 --- a/gcc/config/frv/frv.c +++ b/gcc/config/frv/frv.c @@ -5296,7 +5296,7 @@ acc_operand (rtx op, enum machine_mode mode) { return ((mode == VOIDmode || mode == GET_MODE (op)) && REG_P (op) && ACC_P (REGNO (op)) - && ((INTVAL (op) - ACC_FIRST) & ~ACC_MASK) == 0); + && ((REGNO (op) - ACC_FIRST) & ~ACC_MASK) == 0); } /* Return 1 if operand is a valid even ACC register number. */ @@ -5322,7 +5322,7 @@ accg_operand (rtx op, enum machine_mode mode) { return ((mode == VOIDmode || mode == GET_MODE (op)) && REG_P (op) && ACCG_P (REGNO (op)) - && ((INTVAL (op) - ACCG_FIRST) & ~ACC_MASK) == 0); + && ((REGNO (op) - ACCG_FIRST) & ~ACC_MASK) == 0); }