Commit 7a770d8b by Kazu Hirata Committed by Kazu Hirata

h8300.c (print_operand_address): Do not negate a negative number when printing one.

	* config/h8300/h8300.c (print_operand_address): Do not negate
	a negative number when printing one.

From-SVN: r60501
parent 7d6ac401
2002-12-25 Kazu Hirata <kazu@cs.umass.edu> 2002-12-25 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.c (print_operand_address): Do not negate
a negative number when printing one.
2002-12-25 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300-protos.h: Add prototypes for * config/h8300/h8300-protos.h: Add prototypes for
output_plussi, compute_plussi_length, and compute_plussi_cc. output_plussi, compute_plussi_length, and compute_plussi_cc.
* config/h8300/h8300.c (output_plussi): New. * config/h8300/h8300.c (output_plussi): New.
......
...@@ -1654,11 +1654,7 @@ print_operand_address (file, addr) ...@@ -1654,11 +1654,7 @@ print_operand_address (file, addr)
int n = INTVAL (addr); int n = INTVAL (addr);
if (TARGET_H8300) if (TARGET_H8300)
n = (int) (short) n; n = (int) (short) n;
if (n < 0) fprintf (file, "%d", n);
/* ??? Why the special case for -ve values? */
fprintf (file, "-%d", -n);
else
fprintf (file, "%d", n);
break; break;
} }
......
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