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: tcsh / gcc / x86_64


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~


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