* emit-rtl.c (operand_subword_force): If a register can not be
accessed by words, copy it to a pseudo register.
From-SVN: r19267
+Fri Apr 17 14:30:37 1998 John Carr <jfc@mit.edu>
+
+ * emit-rtl.c (operand_subword_force): If a register can not be
+ accessed by words, copy it to a pseudo register.
+
Fri Apr 17 14:30:37 1998 Jim Wilson <wilson@cygnus.com>
* rs6000/vxppc.h (CPP_SPEC): Add support for mrelocatable*.
return result;
if (mode != BLKmode && mode != VOIDmode)
- op = force_reg (mode, op);
+ {
+ /* If this is a register which can not be accessed by words, copy it
+ to a pseudo register. */
+ if (GET_CODE (op) == REG)
+ op = copy_to_reg (op);
+ else
+ op = force_reg (mode, op);
+ }
result = operand_subword (op, i, 1, mode);
if (result == 0)