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

From-SVN: r7627
This commit is contained in:
Richard Kenner 1994-07-01 06:45:56 -04:00
parent 353646926a
commit e9c1141151

View File

@ -2920,11 +2920,14 @@ expand_divmod (rem_flag, code, mode, op0, op1, target, unsignedp)
}
}
insn = get_last_insn ();
REG_NOTES (insn)
= gen_rtx (EXPR_LIST, REG_EQUAL,
gen_rtx (DIV, compute_mode, op0, op1),
REG_NOTES (insn));
if (quotient != 0)
{
insn = get_last_insn ();
REG_NOTES (insn)
= gen_rtx (EXPR_LIST, REG_EQUAL,
gen_rtx (DIV, compute_mode, op0, op1),
REG_NOTES (insn));
}
}
break;
}