From: Richard Kenner Date: Fri, 1 Jul 1994 10:45:56 +0000 (-0400) Subject: (expand_divmod): Don't set REG_NOTES unless we generated a quotient. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e9c1141151358c5713eefd54d900a816db88fa22;p=platform%2Fupstream%2Fgcc.git (expand_divmod): Don't set REG_NOTES unless we generated a quotient. From-SVN: r7627 --- diff --git a/gcc/expmed.c b/gcc/expmed.c index ee16ed4..5df0188 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -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; }