X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=gcc%2Fconfig%2Fcris%2Fcris.c;h=f9a7d1efe6919f27b0a8fc1cf80348de8b5e8f07;hp=19d250c8549aff564919cdfef1e1d7270a490de9;hb=bfbfacd5b9e44d43aee7f5e9caeb94e1a1a365e0;hpb=4f217f6965e82cb382ac08e5949f87cf9b154da3 diff --git a/gcc/config/cris/cris.c b/gcc/config/cris/cris.c index 19d250c8549..f9a7d1efe69 100644 --- a/gcc/config/cris/cris.c +++ b/gcc/config/cris/cris.c @@ -845,11 +845,10 @@ cris_print_operand (FILE *file, rtx x, int code) switch (GET_CODE (operand)) { case CONST_INT: - if (HOST_BITS_PER_WIDE_INT == 32) - /* Sign-extension from a normal int to a long long. */ - fprintf (file, INTVAL (operand) < 0 ? "-1" : "0"); - else - fprintf (file, "0x%x", (unsigned int)(INTVAL (x) >> 31 >> 1)); + /* If we're having 64-bit HOST_WIDE_INTs, the whole (DImode) + value is kept here, and so may be other than 0 or -1. */ + fprintf (file, HOST_WIDE_INT_PRINT_DEC, + INTVAL (operand_subword (operand, 1, 0, DImode))); return; case CONST_DOUBLE: