aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gnu.org>1995-05-12 01:39:52 +0000
committerTorbjorn Granlund <tege@gnu.org>1995-05-12 01:39:52 +0000
commit1aa8bf84f9648d85ef0e498deddc5a73e52e639d (patch)
treec44b4e05c1fc03bcaa1441177184997544603223 /gcc
parentca01dc12ddf0262045ae9d96beb232d4b7a44e6f (diff)
downloadgcc-1aa8bf84f9648d85ef0e498deddc5a73e52e639d.zip
gcc-1aa8bf84f9648d85ef0e498deddc5a73e52e639d.tar.gz
gcc-1aa8bf84f9648d85ef0e498deddc5a73e52e639d.tar.bz2
OK, this is what I really wanted to install...
From-SVN: r9633
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/i960/i960.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/gcc/config/i960/i960.c b/gcc/config/i960/i960.c
index 57c409b..0c64a03 100644
--- a/gcc/config/i960/i960.c
+++ b/gcc/config/i960/i960.c
@@ -2110,10 +2110,13 @@ i960_output_double (file, value)
REAL_VALUE_TYPE value;
{
long value_long[2];
+ char dstr[30];
+
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",
- value_long[0], value_long[1]);
+ fprintf (file, "\t.word\t0x%08lx\t\t# %s\n\t.word\t0x%08lx\n",
+ value_long[0], dstr, value_long[1]);
}
void
@@ -2122,9 +2125,12 @@ i960_output_float (file, value)
REAL_VALUE_TYPE value;
{
long value_long;
+ char dstr[30];
+
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. */