From 8860adf4b71c8ef1e9096e7ed89e12fb84d7426b Mon Sep 17 00:00:00 2001 From: Paul Koning Date: Mon, 8 Nov 2010 20:10:18 -0500 Subject: * 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(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8bd5348..ce47b7a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2010-11-08 Paul Koning + * config/pdp11/pdp11.md (negsi2): Fix wrong code. + +2010-11-08 Paul Koning + * config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values to 8 bits. diff --git a/gcc/config/pdp11/pdp11.md b/gcc/config/pdp11/pdp11.md index 27893a6..65aadf0 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 \"\"; -- cgit v1.1