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
0b540bf4
Commit
0b540bf4
authored
Mar 31, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(ASM_OUTPUT_DOUBLE, PRINT_OPERAND):
Use new REAL_VALUE... macros. From-SVN: r3967
parent
0fa83258
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
13 deletions
+16
-13
gcc/config/m68k/crds.h
+16
-13
No files found.
gcc/config/m68k/crds.h
View file @
0b540bf4
...
...
@@ -4,7 +4,7 @@
Written by Gary E. Miller
bug reports to Gary_Edmunds_Miller@cup.portal.com
Copyright (C) 1987 Free Software Foundation, Inc.
Copyright (C) 1987
, 1993
Free Software Foundation, Inc.
This file is part of GNU CC.
...
...
@@ -168,9 +168,9 @@ bss_section () \
#undef ASM_OUTPUT_DOUBLE
#define ASM_OUTPUT_DOUBLE(FILE,VALUE) \
do {
union { double f; long l[2];} tem;
\
tem.f = (VALUE);
\
fprintf (FILE, "\t.long 0x%x, 0x%x\n",
tem.l[0], tem.
l[1]); \
do {
long l[2];
\
REAL_VALUE_TO_TARGET_DOUBLE (VALUE, l);
\
fprintf (FILE, "\t.long 0x%x, 0x%x\n",
l[0],
l[1]); \
} while (0)
/*unos has no .skip :-( */
...
...
@@ -300,18 +300,21 @@ do { union { double f; long l[2];} tem; \
&& (i = standard_sun_fpa_constant_p (X))) \
fprintf (FILE, "%%%d", i & 0x1ff); \
else if (GET_CODE (X) == CONST_DOUBLE && GET_MODE (X) == SFmode) \
{ union { double d; int i[2]; } u; \
union { float f; int i; } u1; \
u.i[0] = CONST_DOUBLE_LOW (X); u.i[1] = CONST_DOUBLE_HIGH (X); \
u1.f = u.d; \
{ REAL_VALUE_TYPE r; long l; \
REAL_VALUE_FROM_CONST_DOUBLE (r, X); \
if (CODE == 'f') \
ASM_OUTPUT_FLOAT_OPERAND (
FILE, u1.f);
\
ASM_OUTPUT_FLOAT_OPERAND (
CODE, FILE, r);
\
else \
fprintf (FILE, "$0x%x", u1.i); } \
{ REAL_VALUE_TO_TARGET_SINGLE (r, l); \
fprintf (FILE, "$0x%x", l); } } \
else if (GET_CODE (X) == CONST_DOUBLE && GET_MODE (X) == XFmode) \
{ REAL_VALUE_TYPE r; \
REAL_VALUE_FROM_CONST_DOUBLE (r, X); \
ASM_OUTPUT_LONG_DOUBLE_OPERAND (FILE, r); } \
else if (GET_CODE (X) == CONST_DOUBLE && GET_MODE (X) != DImode) \
{
union { double d; int i[2]; } u;
\
u.i[0] = CONST_DOUBLE_LOW (X); u.i[1] = CONST_DOUBLE_HIGH (X);
\
ASM_OUTPUT_DOUBLE_OPERAND (FILE,
u.d
); } \
{
REAL_VALUE_TYPE r;
\
REAL_VALUE_FROM_CONST_DOUBLE (r, X);
\
ASM_OUTPUT_DOUBLE_OPERAND (FILE,
r
); } \
else { putc ('$', FILE); output_addr_const (FILE, X); }}
/* Note that this contains a kludge that knows that the only reason
...
...
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