Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
bd657ba5
Commit
bd657ba5
authored
Dec 27, 1994
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use REAL_VALUE_TO_TARGET_{DOUBLE,SINGLE} to print float values
From-SVN: r8692
parent
fb2f4828
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
gcc/config/i960/i960.c
+15
-0
No files found.
gcc/config/i960/i960.c
View file @
bd657ba5
...
...
@@ -2104,6 +2104,13 @@ i960_output_double (file, value)
FILE
*
file
;
double
value
;
{
#ifdef REAL_VALUE_TO_TARGET_DOUBLE
long
value_long
[
2
];
REAL_VALUE_TO_TARGET_DOUBLE
(
value
,
value_long
);
fprintf
(
stream
,
"
\t
.word
\t
0x%08lx
\t\t
# %.20g
\n\t
.word
\t
0x%08lx
\n
"
,
value_long
[
0
],
value
,
value_long
[
1
]);
#else
if
(
REAL_VALUE_ISINF
(
value
))
{
fprintf
(
file
,
"
\t
.word 0
\n
"
);
...
...
@@ -2111,6 +2118,7 @@ i960_output_double (file, value)
}
else
fprintf
(
file
,
"
\t
.double 0d%.17e
\n
"
,
(
value
));
#endif
}
void
...
...
@@ -2118,10 +2126,17 @@ i960_output_float (file, value)
FILE
*
file
;
double
value
;
{
#ifdef REAL_VALUE_TO_TARGET_SINGLE
long
value_long
;
REAL_VALUE_TO_TARGET_SINGLE
(
value
,
value_long
);
fprintf
(
stream
,
"
\t
.word
\t
0x%08lx
\t\t
# %.12g (float)
\n
"
,
value_long
,
value
);
#else
if
(
REAL_VALUE_ISINF
(
value
))
fprintf
(
file
,
"
\t
.word 0x7f800000 # Infinity
\n
"
);
else
fprintf
(
file
,
"
\t
.float 0f%.12e
\n
"
,
(
value
));
#endif
}
/* Return the number of bits that an object of size N bytes is aligned to. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment