Commit 1aa8bf84 by Torbjorn Granlund

OK, this is what I really wanted to install...

From-SVN: r9633
parent ca01dc12
...@@ -2110,10 +2110,13 @@ i960_output_double (file, value) ...@@ -2110,10 +2110,13 @@ i960_output_double (file, value)
REAL_VALUE_TYPE value; REAL_VALUE_TYPE value;
{ {
long value_long[2]; long value_long[2];
char dstr[30];
REAL_VALUE_TO_TARGET_DOUBLE (value, value_long); REAL_VALUE_TO_TARGET_DOUBLE (value, value_long);
REAL_VALUE_TO_DECIMAL (value, "%.20g", dstr);
fprintf (file, "\t.word\t0x%08lx\n\t.word\t0x%08lx\n", fprintf (file, "\t.word\t0x%08lx\t\t# %s\n\t.word\t0x%08lx\n",
value_long[0], value_long[1]); value_long[0], dstr, value_long[1]);
} }
void void
...@@ -2122,9 +2125,12 @@ i960_output_float (file, value) ...@@ -2122,9 +2125,12 @@ i960_output_float (file, value)
REAL_VALUE_TYPE value; REAL_VALUE_TYPE value;
{ {
long value_long; long value_long;
char dstr[30];
REAL_VALUE_TO_TARGET_SINGLE (value, value_long); REAL_VALUE_TO_TARGET_SINGLE (value, value_long);
REAL_VALUE_TO_DECIMAL (value, "%.12g", dstr);
fprintf (file, "\t.word\t0x%08lx\n", value_long); fprintf (file, "\t.word\t0x%08lx\t\t# %s (float)\n", value_long, dstr);
} }
/* Return the number of bits that an object of size N bytes is aligned to. */ /* Return the number of bits that an object of size N bytes is aligned to. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment