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:
parent
ba61421d58
commit
670bb1a1c6
|
@ -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>
|
2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
|
* 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>
|
2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* config/i386/i386.c (x86_this_parameter): Replace DImode with
|
* config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
|
||||||
Pmode.
|
|
||||||
|
|
||||||
2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
|
2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
|
|
@ -21025,14 +21025,9 @@ ix86_adjust_counter (rtx countreg, HOST_WIDE_INT value)
|
||||||
rtx
|
rtx
|
||||||
ix86_zero_extend_to_Pmode (rtx exp)
|
ix86_zero_extend_to_Pmode (rtx exp)
|
||||||
{
|
{
|
||||||
rtx r;
|
if (GET_MODE (exp) != Pmode)
|
||||||
if (GET_MODE (exp) == VOIDmode)
|
exp = convert_to_mode (Pmode, exp, 1);
|
||||||
return force_reg (Pmode, exp);
|
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Divide COUNTREG by SCALE. */
|
/* Divide COUNTREG by SCALE. */
|
||||||
|
|
Loading…
Reference in New Issue