This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: patches for m68k -mpcrel


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]