* PATCH: PR target/30474: Bad 16bit constant code generation on 64bit host
@ 2007-01-15 19:06 H. J. Lu
0 siblings, 0 replies; only message in thread
From: H. J. Lu @ 2007-01-15 19:06 UTC (permalink / raw)
To: gcc-patches
This patch makes sure that only lower 16bits are used for 'U'.
H.J.
----
2007-01-15 H.J. Lu <hongjiu.lu@intel.com>
PR target/30474
* config/score/score.c (score_print_operand): Only print out
lower 16bits for 'U'.
--- gcc/config/score/score.c.64 2007-01-15 10:13:33.000000000 -0800
+++ gcc/config/score/score.c 2007-01-15 11:00:53.000000000 -0800
@@ -1144,7 +1144,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);
+ (unsigned HOST_WIDE_INT) (INTVAL (op) >> 16) & 0xffff);
}
else if (c == 'D')
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-01-15 19:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-15 19:06 PATCH: PR target/30474: Bad 16bit constant code generation on 64bit host H. J. Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).