Commit 1f621085 by Uros Bizjak Committed by Uros Bizjak

reg-stack.c (subst_asm_stack_regs): Call replace_reg also for clobbers.

	* reg-stack.c (subst_asm_stack_regs): Call replace_reg also
	for clobbers.  Remove obsolete comment.

From-SVN: r264216
parent 0e4cb16f
2018-09-11 Uros Bizjak <ubizjak@gmail.com> 2018-09-11 Uros Bizjak <ubizjak@gmail.com>
* reg-stack.c (subst_asm_stack_regs): Call replace_reg also
for clobbers. Remove obsolete comment.
2018-09-11 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (define_attr "type"): Remove mpxmov, mpxmk, * config/i386/i386.md (define_attr "type"): Remove mpxmov, mpxmk,
mpxchk, mpxld and mpxst types. mpxchk, mpxld and mpxst types.
(define_attr length_immediate): Remove all processing of mpx types. (define_attr length_immediate): Remove all processing of mpx types.
......
...@@ -2275,13 +2275,7 @@ subst_asm_stack_regs (rtx_insn *insn, stack_ptr regstack) ...@@ -2275,13 +2275,7 @@ subst_asm_stack_regs (rtx_insn *insn, stack_ptr regstack)
int regnum = get_hard_regnum (regstack, clobber_reg[i]); int regnum = get_hard_regnum (regstack, clobber_reg[i]);
if (regnum >= 0) if (regnum >= 0)
{ replace_reg (clobber_loc[i], regnum);
/* Sigh - clobbers always have QImode. But replace_reg knows
that these regs can't be MODE_INT and will assert. Just put
the right reg there without calling replace_reg. */
*clobber_loc[i] = FP_MODE_REG (regnum, DFmode);
}
} }
/* Now remove from REGSTACK any inputs that the asm implicitly popped. */ /* Now remove from REGSTACK any inputs that the asm implicitly popped. */
......
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