From: Paul Koning Date: Sun, 21 Nov 2010 16:55:51 +0000 (-0500) Subject: * config/mips/pdp11.md (negsi2): Fix wrong code. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2dc211c5ff5a257604c71766495b8790a3cf6471;p=gcc.git * config/mips/pdp11.md (negsi2): Fix wrong code. From-SVN: r167006 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 09544e1a12e..285c59c45c3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2010-11-21 Paul Koning + + * config/mips/pdp11.md (negsi2): Fix wrong code. + 2010-11-21 Paul Koning * config/mips/pdp11.c (pdp11_legitimate_address_p): New function. diff --git a/gcc/config/pdp11/pdp11.md b/gcc/config/pdp11/pdp11.md index 6f76458e41c..2d4eb8a829e 100644 --- a/gcc/config/pdp11/pdp11.md +++ b/gcc/config/pdp11/pdp11.md @@ -1149,12 +1149,13 @@ operands[1] = gen_rtx_REG (HImode, REGNO (operands[1]) + 1); output_asm_insn (\"com %0\", lateoperands); - output_asm_insn (\"neg %0\", operands); + output_asm_insn (\"com %0\", operands); + output_asm_insn (\"add $1, %0\", operands); output_asm_insn (\"adc %0\", lateoperands); return \"\"; } - [(set_attr "length" "10")]) + [(set_attr "length" "14")]) (define_insn "neghi2" [(set (match_operand:HI 0 "nonimmediate_operand" "=rR,Q")