From 2a88ebca7670b70c245035a99fd17051f329820f Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Thu, 9 Sep 2004 13:48:23 +0000 Subject: [PATCH] * config/frv/frv.c (acc_operand, accg_operand): Use REGNO. From-SVN: r87239 --- gcc/ChangeLog | 4 ++++ gcc/config/frv/frv.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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); } -- 2.30.2