Commit e9c11411 by Richard Kenner

(expand_divmod): Don't set REG_NOTES unless we generated a quotient.

From-SVN: r7627
parent 35364692
...@@ -2920,12 +2920,15 @@ expand_divmod (rem_flag, code, mode, op0, op1, target, unsignedp) ...@@ -2920,12 +2920,15 @@ expand_divmod (rem_flag, code, mode, op0, op1, target, unsignedp)
} }
} }
if (quotient != 0)
{
insn = get_last_insn (); insn = get_last_insn ();
REG_NOTES (insn) REG_NOTES (insn)
= gen_rtx (EXPR_LIST, REG_EQUAL, = gen_rtx (EXPR_LIST, REG_EQUAL,
gen_rtx (DIV, compute_mode, op0, op1), gen_rtx (DIV, compute_mode, op0, op1),
REG_NOTES (insn)); REG_NOTES (insn));
} }
}
break; break;
} }
fail1: fail1:
......
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