diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2011-03-24 21:52:09 +0100 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2011-03-24 21:52:09 +0100 |
commit | 2717305800114828efe70e9e1dd0414adf539dce (patch) | |
tree | 8fbc6877740e6d7b86226ba168f722eb5e17c62a /gcc | |
parent | 6f0c9f06a58f56e54a595cdbb419c6a987710519 (diff) | |
download | gcc-2717305800114828efe70e9e1dd0414adf539dce.zip gcc-2717305800114828efe70e9e1dd0414adf539dce.tar.gz gcc-2717305800114828efe70e9e1dd0414adf539dce.tar.bz2 |
i386.md (ix86_print_operand): Output DFmode const_double correctly.
* config/i386/i386.md (ix86_print_operand): Output DFmode const_double
correctly.
From-SVN: r171424
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 7 |
2 files changed, 6 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4e2732a..ad0a130 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-03-24 Uros Bizjak <ubizjak@gmail.com> + + * config/i386/i386.md (ix86_print_operand): Output DFmode const_double + correctly. + 2011-03-24 Jakub Jelinek <jakub@redhat.com> PR debug/48204 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 17f0975..415cefd 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -14408,12 +14408,7 @@ ix86_print_operand (FILE *file, rtx x, int code) if (ASSEMBLER_DIALECT == ASM_ATT) putc ('$', file); - /* We can use %d if the number is <32 bits and positive. */ - if (l[1] || l[0] < 0) - fprintf (file, "0x%lx%08lx", - (unsigned long) l[1], (unsigned long) l[0]); - else - fprintf (file, HOST_WIDE_INT_PRINT_DEC, l[0]); + fprintf (file, "0x%lx%08lx", l[1] & 0xffffffff, l[0] & 0xffffffff); } /* These float cases don't actually occur as immediate operands. */ |