This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: #3 rs6000 specific (actually Darwin specific)
- From: Dale Johannesen <dalej at apple dot com>
- To: David Edelsohn <dje at watson dot ibm dot com>
- Cc: Dale Johannesen <dalej at apple dot com>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 29 Jan 2002 10:39:16 -0800
- Subject: 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")])