This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: PR 19061 & 26345: Fix basereg_operand for IA64
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: sje at cup dot hp dot com
- Cc: gcc-patches at gcc dot gnu dot org, mark at codesourcery dot com
- Date: Sat, 18 Feb 2006 06:58:11 +0100
- Subject: Re: PATCH: PR 19061 & 26345: Fix basereg_operand for IA64
- References: <200602180429.UAA05436@hpsje.cup.hp.com>
> Index: config/ia64/predicates.md
> ===================================================================
> --- config/ia64/predicates.md (revision 110852)
> +++ config/ia64/predicates.md (working copy)
> @@ -586,8 +586,6 @@ (define_predicate "ar_pfs_reg_operand"
> (define_predicate "basereg_operand"
> (match_operand 0 "register_operand")
> {
> - if (GET_CODE (op) == SUBREG)
> - op = SUBREG_REG (op);
> - return REG_POINTER (op);
> + return register_operand (op, mode) && REG_P (op) && REG_POINTER (op);
> })
Testing register_operand in the body is redundant with the "prologue".
--
Eric Botcazou