Commit 4bc74ece by Nick Clifton Committed by Nick Clifton

print large constants in hex not dec.

From-SVN: r26142
parent 7b028dba
Fri Apr 2 17:36:10 1999 Nick Clifton <nickc@cygnus.com>
* config/arm/arm.c (arm_print_operand): Print large constants in
hex rather than decimal.
Fri Apr 2 17:23:58 1999 Nick Clifton <nickc@cygnus.com> Fri Apr 2 17:23:58 1999 Nick Clifton <nickc@cygnus.com>
* print-rtl.c (print_rtx): Use both HOST_WIDE_INT_PRINT_DEC * print-rtl.c (print_rtx): Use both HOST_WIDE_INT_PRINT_DEC
......
...@@ -5700,13 +5700,15 @@ arm_print_operand (stream, x, code) ...@@ -5700,13 +5700,15 @@ arm_print_operand (stream, x, code)
case 'B': case 'B':
if (GET_CODE (x) == CONST_INT) if (GET_CODE (x) == CONST_INT)
fprintf (stream, {
#if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT HOST_WIDE_INT val;
"%d", val = ARM_SIGN_EXTEND (~ INTVAL (x));
#else
"%ld", if (val < -1000 || val > 1000)
#endif fprintf (stream, HOST_WIDE_INT_PRINT_HEX, val);
ARM_SIGN_EXTEND (~ INTVAL (x))); else
fprintf (stream, HOST_WIDE_INT_PRINT_DEC, val);
}
else else
{ {
putc ('~', stream); putc ('~', stream);
...@@ -5725,21 +5727,21 @@ arm_print_operand (stream, x, code) ...@@ -5725,21 +5727,21 @@ arm_print_operand (stream, x, code)
case 'S': case 'S':
{ {
HOST_WIDE_INT val; HOST_WIDE_INT val;
char *shift = shift_op (x, &val); char * shift = shift_op (x, & val);
if (shift) if (shift)
{ {
fprintf (stream, ", %s ", shift_op (x, &val)); fprintf (stream, ", %s ", shift_op (x, & val));
if (val == -1) if (val == -1)
arm_print_operand (stream, XEXP (x, 1), 0); arm_print_operand (stream, XEXP (x, 1), 0);
else else
fprintf (stream, {
#if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT fputc ('#', stream);
"#%d", if (val < -1000 || val > 1000)
#else fprintf (stream, HOST_WIDE_INT_PRINT_HEX (val));
"#%ld", else
#endif fprintf (stream, HOST_WIDE_INT_PRINT_DEC (val));
val); }
} }
} }
return; return;
......
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