Commit 25963ac4 by H.J. Lu Committed by H.J. Lu

Convert to Pmode if needed.

2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if
	needed.

From-SVN: r178039
parent 40885767
2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if
needed.
2011-08-24 Richard Guenther <rguenther@suse.de> 2011-08-24 Richard Guenther <rguenther@suse.de>
* tree-data-ref.c (dr_analyze_indices): Avoid unsharing the * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
......
...@@ -27880,6 +27880,8 @@ rdrand_step: ...@@ -27880,6 +27880,8 @@ rdrand_step:
/* Force memory operand only with base register here. But we /* Force memory operand only with base register here. But we
don't want to do it on memory operand for other builtin don't want to do it on memory operand for other builtin
functions. */ functions. */
if (GET_MODE (op1) != Pmode)
op1 = convert_to_mode (Pmode, op1, 1);
op1 = force_reg (Pmode, op1); op1 = force_reg (Pmode, op1);
op1 = gen_rtx_MEM (mode1, op1); op1 = gen_rtx_MEM (mode1, op1);
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