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 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~


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