* [RS6000] LE SFmode constants in toc
@ 2013-06-04 13:05 Alan Modra
2013-06-04 13:56 ` David Edelsohn
0 siblings, 1 reply; 2+ messages in thread
From: Alan Modra @ 2013-06-04 13:05 UTC (permalink / raw)
To: gcc-patches; +Cc: David Edelsohn
ppc64 SFmode constants in the TOC occupy the first word of a dword.
For little-endian, we don't need to shift left. Bootstrapped etc. and
committed as obvious revision 199646.
* config/rs6000/rs6000.c (output_toc): Correct little-endian float
constant output.
Index: gcc/config/rs6000/rs6000.c
===================================================================
--- gcc/config/rs6000/rs6000.c (revision 199644)
+++ gcc/config/rs6000/rs6000.c (working copy)
@@ -22574,7 +22574,10 @@ output_toc (FILE *file, rtx x, int labelno, enum m
fputs (DOUBLE_INT_ASM_OP, file);
else
fprintf (file, "\t.tc FS_%lx[TC],", l & 0xffffffff);
- fprintf (file, "0x%lx00000000\n", l & 0xffffffff);
+ if (WORDS_BIG_ENDIAN)
+ fprintf (file, "0x%lx00000000\n", l & 0xffffffff);
+ else
+ fprintf (file, "0x%lx\n", l & 0xffffffff);
return;
}
else
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [RS6000] LE SFmode constants in toc
2013-06-04 13:05 [RS6000] LE SFmode constants in toc Alan Modra
@ 2013-06-04 13:56 ` David Edelsohn
0 siblings, 0 replies; 2+ messages in thread
From: David Edelsohn @ 2013-06-04 13:56 UTC (permalink / raw)
To: GCC Patches, Alan Modra
On Tue, Jun 4, 2013 at 9:05 AM, Alan Modra <amodra@gmail.com> wrote:
> ppc64 SFmode constants in the TOC occupy the first word of a dword.
> For little-endian, we don't need to shift left. Bootstrapped etc. and
> committed as obvious revision 199646.
>
> * config/rs6000/rs6000.c (output_toc): Correct little-endian float
> constant output.
Okay.
Thanks, David
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-04 13:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-04 13:05 [RS6000] LE SFmode constants in toc Alan Modra
2013-06-04 13:56 ` David Edelsohn
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).