Commit 2239ced8 by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

cris.c (cris_print_operand): Use operand_subword and HOST_WIDE_INT_PRINT_DEC for output...

	* config/cris/cris.c (cris_print_operand) <case 'H'; case
	CONST_INT>: Use operand_subword and HOST_WIDE_INT_PRINT_DEC for
	output; don't have special case for HOST_BITS_PER_WIDE_INT == 32.

From-SVN: r99635
parent a930a4ef
2005-05-13 Hans-Peter Nilsson <hp@axis.com>
* config/cris/cris.c (cris_print_operand) <case 'H'; case
CONST_INT>: Use operand_subword and HOST_WIDE_INT_PRINT_DEC for
output; don't have special case for HOST_BITS_PER_WIDE_INT == 32.
2005-05-13 Jan Hubicka <jh@suse.cz> 2005-05-13 Jan Hubicka <jh@suse.cz>
* basic-block.h (FOR_ALL_BB_FN): New macro. * basic-block.h (FOR_ALL_BB_FN): New macro.
......
...@@ -845,11 +845,10 @@ cris_print_operand (FILE *file, rtx x, int code) ...@@ -845,11 +845,10 @@ cris_print_operand (FILE *file, rtx x, int code)
switch (GET_CODE (operand)) switch (GET_CODE (operand))
{ {
case CONST_INT: case CONST_INT:
if (HOST_BITS_PER_WIDE_INT == 32) /* If we're having 64-bit HOST_WIDE_INTs, the whole (DImode)
/* Sign-extension from a normal int to a long long. */ value is kept here, and so may be other than 0 or -1. */
fprintf (file, INTVAL (operand) < 0 ? "-1" : "0"); fprintf (file, HOST_WIDE_INT_PRINT_DEC,
else INTVAL (operand_subword (operand, 1, 0, DImode)));
fprintf (file, "0x%x", (unsigned int)(INTVAL (x) >> 31 >> 1));
return; return;
case CONST_DOUBLE: case CONST_DOUBLE:
......
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