[PATCH] [committed] PR 12749: i386 LP64 bug
Andrew Pinski
pinskia@physics.uc.edu
Sun Dec 21 00:43:00 GMT 2003
The problem was that the printf was not being told to print only the
first 8
characters of the hex string.
Fixed thusly, I also committed the small test case.
ChangeLog:
2003-12-20 Andrew Pinski <pinskia@gcc.gnu.org>
Matt Thomas <matt@3am-software.com>
PR target/12749
* config/i386/i386.c (print_operand): Print only the first
8 characters of the float in hex.
Patch:
Index: config/i386/i386.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.c,v
retrieving revision 1.624
diff -u -p -r1.624 i386.c
--- config/i386/i386.c 19 Dec 2003 23:37:38 -0000 1.624
+++ config/i386/i386.c 20 Dec 2003 21:48:18 -0000
@@ -7457,7 +7457,7 @@ print_operand (FILE *file, rtx x, int co
if (ASSEMBLER_DIALECT == ASM_ATT)
putc ('$', file);
- fprintf (file, "0x%lx", l);
+ fprintf (file, "0x%08lx", l);
}
/* These float cases don't actually occur as immediate operands. */
More information about the Gcc-patches
mailing list