From 8860adf4b71c8ef1e9096e7ed89e12fb84d7426b Mon Sep 17 00:00:00 2001 From: Paul Koning <ni1d@arrl.net> Date: Mon, 8 Nov 2010 20:10:18 -0500 Subject: [PATCH] * config/pdp11/pdp11.md (negsi2): Fix wrong code. From-SVN: r166467 --- gcc/ChangeLog | 4 ++++ gcc/config/pdp11/pdp11.md | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8bd5348c97cb..ce47b7ae6f78 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2010-11-08 Paul Koning <ni1d@arrl.net> + + * config/pdp11/pdp11.md (negsi2): Fix wrong code. + 2010-11-08 Paul Koning <ni1d@arrl.net> * config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values diff --git a/gcc/config/pdp11/pdp11.md b/gcc/config/pdp11/pdp11.md index 27893a6a8f2f..65aadf0a9b2d 100644 --- a/gcc/config/pdp11/pdp11.md +++ b/gcc/config/pdp11/pdp11.md @@ -1091,9 +1091,8 @@ lateoperands[1] = operands[1]; operands[1] = gen_rtx_REG (HImode, REGNO (operands[1]) + 1); - output_asm_insn (\"com %0\", operands); output_asm_insn (\"com %0\", lateoperands); - output_asm_insn (\"inc %0\", operands); + output_asm_insn (\"neg %0\", operands); output_asm_insn (\"adc %0\", lateoperands); return \"\"; -- GitLab