diff options
author | hp <hp@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-12 23:36:46 +0000 |
---|---|---|
committer | hp <hp@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-12 23:36:46 +0000 |
commit | bfbfacd5b9e44d43aee7f5e9caeb94e1a1a365e0 (patch) | |
tree | 13bb25304aabeb8eb7b62117bb560210f57e41a7 /gcc/config/cris | |
parent | 4f217f6965e82cb382ac08e5949f87cf9b154da3 (diff) | |
download | gcc-bfbfacd5b9e44d43aee7f5e9caeb94e1a1a365e0.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99635 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/cris')
-rw-r--r-- | gcc/config/cris/cris.c | 9 |
1 files changed, 4 insertions, 5 deletions
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: |