Commit 22745c7e by Jim Wilson

(emit_push_insn): Clobber register only if it is non-zero.

From-SVN: r11658
parent d7083c81
...@@ -2353,7 +2353,7 @@ emit_push_insn (x, mode, type, size, align, partial, reg, extra, ...@@ -2353,7 +2353,7 @@ emit_push_insn (x, mode, type, size, align, partial, reg, extra,
/* If we're placing part of X into a register and part of X onto /* If we're placing part of X into a register and part of X onto
the stack, indicate that the entire register is clobbered to the stack, indicate that the entire register is clobbered to
keep flow from thinking the unused part of the register is live. */ keep flow from thinking the unused part of the register is live. */
if (partial) if (partial > 0 && reg != 0)
emit_insn (gen_rtx (CLOBBER, VOIDmode, reg)); emit_insn (gen_rtx (CLOBBER, VOIDmode, reg));
/* Invert direction if stack is post-update. */ /* Invert direction if stack is post-update. */
......
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