On 03/27/2011 03:17 PM, John David Anglin wrote:
> +(define_predicate "reg_or_ior_operand"
> +  (match_code "subreg,reg,const_int")
> +{
> +  return (register_operand (op, mode)
> +       || (GET_CODE (op) == CONST_INT && ior_mask_p (INTVAL (op))));
> +})
> +

Better written, IMO, as

  (ior (match_operand 0 "register_operand")
       (and (match_code "const_int")
            (match_test "ior_mask_p (INTVAL (op))")))


r~

Reply via email to