projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3536469
)
(expand_divmod): Don't set REG_NOTES unless we generated a quotient.
author
Richard Kenner
<kenner@gcc.gnu.org>
Fri, 1 Jul 1994 10:45:56 +0000
(06:45 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Fri, 1 Jul 1994 10:45:56 +0000
(06:45 -0400)
From-SVN: r7627
gcc/expmed.c
patch
|
blob
|
history
diff --git
a/gcc/expmed.c
b/gcc/expmed.c
index ee16ed4544edb665f8483c432f3a289b3772b301..5df0188348961c0f83d268d7a11a7857a70c495c 100644
(file)
--- 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;
}