Commit d6b28156 by Richard Sandiford Committed by Richard Sandiford

explow.c (plus_constant): Pass "mode" to immed_double_int_const.

gcc/
	* explow.c (plus_constant): Pass "mode" to immed_double_int_const.
	Use gen_int_mode rather than GEN_INT.

From-SVN: r198462
parent b0dec607
2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
* explow.c (plus_constant): Pass "mode" to immed_double_int_const.
Use gen_int_mode rather than GEN_INT.
2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
* value-prof.c (stream_in_histogram_value): Remove the strayed
......
......@@ -106,10 +106,10 @@ plus_constant (enum machine_mode mode, rtx x, HOST_WIDE_INT c)
if (overflow)
gcc_unreachable ();
return immed_double_int_const (v, VOIDmode);
return immed_double_int_const (v, mode);
}
return GEN_INT (INTVAL (x) + c);
return gen_int_mode (INTVAL (x) + c, mode);
case CONST_DOUBLE:
{
......@@ -124,7 +124,7 @@ plus_constant (enum machine_mode mode, rtx x, HOST_WIDE_INT c)
To fix, add constant support wider than CONST_DOUBLE. */
gcc_assert (GET_MODE_BITSIZE (mode) <= HOST_BITS_PER_DOUBLE_INT);
return immed_double_int_const (v, VOIDmode);
return immed_double_int_const (v, mode);
}
case MEM:
......
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