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]
Other format: [Raw text]

Re: Patch: #3 rs6000 specific (actually Darwin specific)



On Tuesday, January 29, 2002, at 10:18 AM, David Edelsohn wrote:

> 	Why does operand 1 use a register_operand predicate and not a
> gpc_reg_operand predicate for constraint "b" in patterns like the
> following?

No good reason, although I don't believe a pattern that matches
register_operand but not gpc_reg_operand can ever arise.
gpc_reg_operand is probably preferable; thanks for pointing it out.

> (define_insn "movsi_low"
>   [(set (match_operand:SI 0 "gpc_reg_operand" "=r")
>         (mem:SI (lo_sum:SI (match_operand:SI 1 "register_operand" "b")
>                            (match_operand 2 "" ""))))]
>   "TARGET_MACHO && ! TARGET_64BIT"
>   "{l|lwz} %0,lo16(%2)(%1)"
>   [(set_attr "type" "load")
>    (set_attr "length" "4")])


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