This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/30474] Bad 16bit constant code generation on 64bit host
- From: "liqin at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 May 2007 07:21:37 -0000
- Subject: [Bug target/30474] Bad 16bit constant code generation on 64bit host
- References: <bug-30474-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from liqin at gcc dot gnu dot org 2007-05-10 08:21 -------
Index: gcc/config/score/score.c
===================================================================
--- gcc/config/score/score.c (revision 124567)
+++ gcc/config/score/score.c (working copy)
@@ -1167,7 +1167,7 @@ score_print_operand (FILE *file, rtx op,
{
gcc_assert (code == CONST_INT);
fprintf (file, HOST_WIDE_INT_PRINT_HEX,
- (unsigned HOST_WIDE_INT) INTVAL (op) >> 16);
+ (INTVAL (op) >> 16) & 0xffff);
}
else if (c == 'D')
{
@@ -1175,7 +1175,7 @@ score_print_operand (FILE *file, rtx op,
{
rtx temp = gen_lowpart (SImode, op);
gcc_assert (GET_MODE (op) == SFmode);
- fprintf (file, HOST_WIDE_INT_PRINT_HEX, INTVAL (temp));
+ fprintf (file, HOST_WIDE_INT_PRINT_HEX, INTVAL (temp) & 0xffff);
}
else
output_addr_const (file, op);
--
liqin at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-05-10 08:21:37
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30474