@@ -1,3 +1,9 @@
+2011-01-29 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR target/47537
+ * config/i386/i386.c (ix86_expand_special_args_builtin): Convert
+ to Pmode if needed.
+
2011-01-27 H.J. Lu <hongjiu.lu@intel.com>
PR rtl-optimization/47502
@@ -27040,6 +27040,8 @@ ix86_expand_special_args_builtin (const struct builtin_description *d,
if (i == memory)
{
/* This must be the memory operand. */
+ if (GET_MODE (op) != Pmode)
+ op = convert_to_mode (Pmode, op, 1);
op = gen_rtx_MEM (mode, copy_to_mode_reg (Pmode, op));
gcc_assert (GET_MODE (op) == mode
|| GET_MODE (op) == VOIDmode);