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
This commit is contained in:
Uros Bizjak 2012-03-11 19:19:05 +01:00
parent ba61421d58
commit 670bb1a1c6
2 changed files with 9 additions and 10 deletions

View File

@ -1,3 +1,8 @@
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>

View File

@ -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. */