This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patches for m68k -mpcrel
- To: Donald Lindsay <dlindsay at cygnus dot com>
- Subject: Re: patches for m68k -mpcrel
- From: Richard Henderson <rth at cygnus dot com>
- Date: Fri, 18 Jun 1999 02:08:23 -0700
- Cc: egcs-patches at egcs dot cygnus dot com
- References: <Pine.LNX.4.10.9906171518530.14329-800000@hound.cygnus.com>
On Thu, Jun 17, 1999 at 03:19:51PM -0700, Donald Lindsay wrote:
> + int
> + general_src_operand (op, mode)
> + rtx op;
> + enum machine_mode mode;
> + {
> + if (TARGET_PCREL
> + && GET_CODE (op) == MEM
> + && (GET_CODE (XEXP (op, 0)) == SYMBOL_REF
> + || GET_CODE (XEXP (op, 0)) == LABEL_REF
> + || GET_CODE (XEXP (op, 0)) == CONST))
> + return 1;
> + return general_operand (op, mode);
> + }
All of these predicates need to test that `mode' matches the
mode of the operand --
if (mode != VOIDmode && mode != GET_MODE (op))
return 0;
r~