This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: tcsh / gcc / x86_64
- From: Richard Henderson <rth at redhat dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: Marcus Meissner <Marcus dot Meissner at suse dot de>, Andreas Jaeger <aj at suse dot de>, Michael Matz <mmatz at suse dot de>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 22 Apr 2002 14:36:11 -0700
- Subject: Re: tcsh / gcc / x86_64
- References: <20020422131930.A11645@suse.de> <20020422212912.GG15912@atrey.karlin.mff.cuni.cz>
On Mon, Apr 22, 2002 at 11:29:12PM +0200, Jan Hubicka wrote:
> + if (GET_CODE (final_value) == PLUS)
> + {
> + final_value = expand_simple_binop (GET_MODE (final_value), PLUS,
> + copy_rtx (XEXP (final_value, 0)),
> + copy_rtx (XEXP (final_value, 1)),
> + reg, 0, OPTAB_LIB_WIDEN);
> + if (final_value != reg)
> + emit_move_insn (reg, final_value);
> + }
> + else
> + emit_move_insn (reg, final_value);
Perhaps better
tmp = force_operand (final_value, reg);
if (tmp != reg)
emit_move_insn (reg, tmp);
r~