+Thu Dec 17 13:57:23 1998 Nick Clifton <nickc@cygnus.com>
+
+ * expr.c (emit_move_insn_1): Only emit a clobber if the target
+ is a pseudo register.
+
Thu Dec 17 13:50:29 1998 Nick Clifton <nickc@cygnus.com>
* gcse.c: Include expr.h in order to get the prototype for
}
else
{
- /* Show the output dies here. */
+ /* Show the output dies here. This is only necessary for pseudos. */
if (x != y)
- emit_insn (gen_rtx_CLOBBER (VOIDmode, x));
+ {
+ rtx reg = x;
+
+ while (GET_CODE (reg) == SUBREG)
+ reg = SUBREG_REG (reg);
+
+ if (GET_CODE (reg) == REG
+ && REGNO (reg) >= FIRST_PSEUDO_REGISTER)
+ emit_insn (gen_rtx_CLOBBER (VOIDmode, x));
+ }
emit_insn (GEN_FCN (mov_optab->handlers[(int) submode].insn_code)
(gen_realpart (submode, x), gen_realpart (submode, y)));
}
#endif
- /* Show the output dies here. */
+ /* Show the output dies here. This is only necessary for pseudos. */
if (x != y)
- emit_insn (gen_rtx_CLOBBER (VOIDmode, x));
+ {
+ rtx reg = x;
+
+ while (GET_CODE (reg) == SUBREG)
+ reg = SUBREG_REG (reg);
+
+ if (GET_CODE (reg) == REG
+ && REGNO (reg) >= FIRST_PSEUDO_REGISTER)
+ emit_insn (gen_rtx_CLOBBER (VOIDmode, x));
+ }
for (i = 0;
i < (GET_MODE_SIZE (mode) + (UNITS_PER_WORD - 1)) / UNITS_PER_WORD;