Commit 314d1f3c by Richard Kenner

(move_for_stack_reg): Avoid stack overflow while storing XFmode from

fp reg to memory.

From-SVN: r11564
parent 7a1b98a9
......@@ -1904,7 +1904,7 @@ move_for_stack_reg (insn, regstack, pat)
regstack->top--;
CLEAR_HARD_REG_BIT (regstack->reg_set, REGNO (src));
}
else if (GET_MODE (src) == XFmode && regstack->top != REG_STACK_SIZE)
else if (GET_MODE (src) == XFmode && regstack->top < REG_STACK_SIZE - 1)
{
/* A 387 cannot write an XFmode value to a MEM without
clobbering the source reg. The output code can handle
......
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