This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: About the format of floating point...
- To: slayer <slayer at ccl dot itri dot org dot tw>
- Subject: Re: About the format of floating point...
- From: Stephen L Moshier <moshier at mediaone dot net>
- Date: Fri, 3 Mar 2000 18:43:41 -0500 (EST)
- cc: gcc at gcc dot gnu dot org
- Reply-To: moshier at mediaone dot net
> .float 0f1.00000000000000000000e0
To generate this output, change the ASM_OUTPUT_FLOAT macro
to look something like this:
#define ASM_OUTPUT_FLOAT(FILE,VALUE) \
do { char dstr[30]; \
REAL_VALUE_TO_DECIMAL (VALUE, "%.20g", dstr); \
fprintf (FILE, "\t.float 0f%s\n", dstr); \
} while (0)
If you want NaNs and infinity to work this way, you might adapt
the macro found in m68k/sun3.h. But you would need to find out
what your assembler wants to receive for these special values.