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: Richard Henderson <rth at redhat dot com>
- To: Dale Johannesen <dalej at apple dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 4 Dec 2001 16:13:29 -0800
- Subject: Re: Patch: #3 rs6000 specific (actually Darwin specific)
- References: <6B4E03CA-E8ED-11D5-8923-003065C86F94@apple.com>
On Tue, Dec 04, 2001 at 11:30:48AM -0800, Dale Johannesen wrote:
> + (define_peephole2
> + [(set (match_operand:SI 0 "gpc_reg_operand" "")
> + (lo_sum:SI (match_operand:SI 1 "gpc_reg_operand" "")
> + (match_operand:SI 2 "" "")))
> + (set (match_operand:DF 3 "gpc_reg_operand" "")
> + (mem:DF (match_dup 0)))]
> + "TARGET_MACHO && TARGET_HARD_FLOAT
> + && peep2_reg_dead_p(2, operands[0])
> + && FP_REGNO_P (REGNO (operands[3]))"
> + [(set (match_dup 3) (mem:DF (lo_sum:SI (match_dup 1) (match_dup 2))))]
> + "")
You should be able to do this with LEGITIMIZE_RELOAD_ADDRESS,
if I am not mistaking where this construct comes from.
r~