From: Richard Kenner Date: Fri, 19 Jul 1996 13:08:39 +0000 (-0400) Subject: (negdi2): Undo last change: don't apply neg to address regs. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6231ef8299b7ddc59134042ad9456b7a23f6563c;p=platform%2Fupstream%2Fgcc.git (negdi2): Undo last change: don't apply neg to address regs. From-SVN: r12526 --- diff --git a/gcc/config/m68k/m68k.md b/gcc/config/m68k/m68k.md index 9fb0c8c..c847501 100644 --- 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"