* config/mips/pdp11.md (negsi2): Fix wrong code.

From-SVN: r167006
This commit is contained in:
Paul Koning 2010-11-21 11:55:51 -05:00 committed by Paul Koning
parent e4942929dd
commit 2dc211c5ff
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
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.

View File

@ -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")