projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40e6003
)
(negdi2): Undo last change: don't apply neg to address regs.
author
Richard Kenner
<kenner@gcc.gnu.org>
Fri, 19 Jul 1996 13:08:39 +0000
(09:08 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Fri, 19 Jul 1996 13:08:39 +0000
(09:08 -0400)
From-SVN: r12526
gcc/config/m68k/m68k.md
patch
|
blob
|
history
diff --git
a/gcc/config/m68k/m68k.md
b/gcc/config/m68k/m68k.md
index 9fb0c8c2505cc4cb347d45ba7b0e58082cfd6556..c847501a33456bf3241ea7d8148ac6bb0142b4f3 100644
(file)
--- a/
gcc/config/m68k/m68k.md
+++ b/
gcc/config/m68k/m68k.md
@@
-3796,7
+3796,10
@@
operands[1] = gen_rtx (REG, SImode, REGNO (operands[0]) + 1);
else
operands[1] = adj_offsettable_operand (operands[0], 4);
- return \"neg%.l %1\;negx%.l %0\";
+ if (ADDRESS_REG_P (operands[0]))
+ return \"exg %/d0,%1\;neg%.l %/d0\;exg %/d0,%1\;exg %/d0,%0\;negx%.l %/d0\;exg %/d0,%0\";
+ else
+ return \"neg%.l %1\;negx%.l %0\";
} ")
(define_insn "negsi2"