Commit 670bb1a1 by Uros Bizjak

i386.c (ix86_zero_extend_to_Pmode): Rewrite using convert_to_mode.

	* config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
	convert_to_mode.

From-SVN: r185198
parent ba61421d
2012-03-11 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
convert_to_mode.
2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
......@@ -5,8 +10,7 @@
2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (x86_this_parameter): Replace DImode with
Pmode.
* config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
......
......@@ -21025,14 +21025,9 @@ ix86_adjust_counter (rtx countreg, HOST_WIDE_INT value)
rtx
ix86_zero_extend_to_Pmode (rtx exp)
{
rtx r;
if (GET_MODE (exp) == VOIDmode)
return force_reg (Pmode, exp);
if (GET_MODE (exp) == Pmode)
return copy_to_mode_reg (Pmode, exp);
r = gen_reg_rtx (Pmode);
emit_insn (gen_zero_extendsidi2 (r, exp));
return r;
if (GET_MODE (exp) != Pmode)
exp = convert_to_mode (Pmode, exp, 1);
return force_reg (Pmode, exp);
}
/* Divide COUNTREG by SCALE. */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment