aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Koning <ni1d@arrl.net>2010-11-21 11:55:51 -0500
committerPaul Koning <pkoning@gcc.gnu.org>2010-11-21 11:55:51 -0500
commit2dc211c5ff5a257604c71766495b8790a3cf6471 (patch)
tree5a040bc5f27b6ec35188a688e1b326c51d10dd78
parente4942929dd38ec1a09e147d3de11f3058088451e (diff)
downloadgcc-2dc211c5ff5a257604c71766495b8790a3cf6471.zip
gcc-2dc211c5ff5a257604c71766495b8790a3cf6471.tar.gz
gcc-2dc211c5ff5a257604c71766495b8790a3cf6471.tar.bz2
* config/mips/pdp11.md (negsi2): Fix wrong code.
From-SVN: r167006
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/pdp11/pdp11.md5
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 09544e1..285c59c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2010-11-21 Paul Koning <ni1d@arrl.net>
+ * config/mips/pdp11.md (negsi2): Fix wrong code.
+
+2010-11-21 Paul Koning <ni1d@arrl.net>
+
* config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
* config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
diff --git a/gcc/config/pdp11/pdp11.md b/gcc/config/pdp11/pdp11.md
index 6f76458..2d4eb8a 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")