projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a0e77b
)
(expand_divmod): Clear out TARGET also if OP1 is a constant,
author
Torbjorn Granlund
<tege@gnu.org>
Wed, 6 Jul 1994 07:20:48 +0000
(07:20 +0000)
committer
Torbjorn Granlund
<tege@gnu.org>
Wed, 6 Jul 1994 07:20:48 +0000
(07:20 +0000)
when TARGET == OP0.
From-SVN: r7661
gcc/expmed.c
patch
|
blob
|
history
diff --git
a/gcc/expmed.c
b/gcc/expmed.c
index
f828e7f
..
e5ff61a
100644
(file)
--- a/
gcc/expmed.c
+++ b/
gcc/expmed.c
@@
-2605,7
+2605,7
@@
expand_divmod (rem_flag, code, mode, op0, op1, target, unsignedp)
and function-inlining gets confused by this. */
&& ((REG_P (target) && REG_FUNCTION_VALUE_P (target))
/* Don't clobber an operand while doing a multi-step calculation. */
- || (
rem_flag
+ || (
(rem_flag || op1_is_constant)
&& (reg_mentioned_p (target, op0)
|| (GET_CODE (op0) == MEM && GET_CODE (target) == MEM)))
|| reg_mentioned_p (target, op1)