diff options
author | Paul Koning <ni1d@arrl.net> | 2010-11-08 20:10:18 -0500 |
---|---|---|
committer | Paul Koning <pkoning@gcc.gnu.org> | 2010-11-08 20:10:18 -0500 |
commit | 8860adf4b71c8ef1e9096e7ed89e12fb84d7426b (patch) | |
tree | 27167ea5c0bdc521156a860620725537dd348096 | |
parent | e285a2c6b4710c4a141fc18b7151457e4ae7f290 (diff) | |
download | gcc-8860adf4b71c8ef1e9096e7ed89e12fb84d7426b.zip gcc-8860adf4b71c8ef1e9096e7ed89e12fb84d7426b.tar.gz gcc-8860adf4b71c8ef1e9096e7ed89e12fb84d7426b.tar.bz2 |
* config/pdp11/pdp11.md (negsi2): Fix wrong code.
From-SVN: r166467
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/pdp11/pdp11.md | 3 |
2 files changed, 5 insertions, 2 deletions
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 <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 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 \"\"; |