Commit 2dc211c5 by Paul Koning Committed by Paul Koning

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

From-SVN: r167006
parent e4942929
2010-11-21 Paul Koning <ni1d@arrl.net> 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.c (pdp11_legitimate_address_p): New function.
* config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete. * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
...@@ -1149,12 +1149,13 @@ ...@@ -1149,12 +1149,13 @@
operands[1] = gen_rtx_REG (HImode, REGNO (operands[1]) + 1); operands[1] = gen_rtx_REG (HImode, REGNO (operands[1]) + 1);
output_asm_insn (\"com %0\", lateoperands); 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); output_asm_insn (\"adc %0\", lateoperands);
return \"\"; return \"\";
} }
[(set_attr "length" "10")]) [(set_attr "length" "14")])
(define_insn "neghi2" (define_insn "neghi2"
[(set (match_operand:HI 0 "nonimmediate_operand" "=rR,Q") [(set (match_operand:HI 0 "nonimmediate_operand" "=rR,Q")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment