summaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-15 13:06:58 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-15 13:06:58 +0000
commit629d2471ffe54279385295925dcecc6f2e04c54e (patch)
treec4d899366fa1c01553a24de869cc410ef00881bd /gcc/optabs.c
parentd99effe31c29400ce16c6c8e5b8944dc75809620 (diff)
downloadgcc-629d2471ffe54279385295925dcecc6f2e04c54e.tar.gz
* optabs.c (expand_binop): In multi-word add cases, ensure
XTARGET is copied to TARGET if they are different. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65632 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r--gcc/optabs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 59f714714e0..f57c81448dd 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -1299,7 +1299,8 @@ expand_binop (mode, binoptab, op0, op1, target, unsignedp, methods)
if (i == GET_MODE_BITSIZE (mode) / (unsigned) BITS_PER_WORD)
{
- if (mov_optab->handlers[(int) mode].insn_code != CODE_FOR_nothing)
+ if (mov_optab->handlers[(int) mode].insn_code != CODE_FOR_nothing
+ || ! rtx_equal_p (target, xtarget))
{
rtx temp = emit_move_insn (target, xtarget);