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
53322b0c
Commit
53322b0c
authored
Aug 24, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(output_{pro,epi}log): Don't need no-ops after calls to functions to
save and restore FP regs. From-SVN: r5211
parent
9bf99417
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
gcc/config/rs6000/rs6000.c
+4
-7
No files found.
gcc/config/rs6000/rs6000.c
View file @
53322b0c
...
@@ -1332,15 +1332,14 @@ output_prolog (file, size)
...
@@ -1332,15 +1332,14 @@ output_prolog (file, size)
fprintf
(
file
,
"
\t
mfcr 12
\n
"
);
fprintf
(
file
,
"
\t
mfcr 12
\n
"
);
/* Do any required saving of fpr's. If only one or two to save, do it
/* Do any required saving of fpr's. If only one or two to save, do it
ourself. Otherwise, call function. */
ourself. Otherwise, call function. Note that since they are statically
linked, we do not need a nop following them. */
if
(
first_fp_reg
==
62
)
if
(
first_fp_reg
==
62
)
fprintf
(
file
,
"
\t
stfd 30,-16(1)
\n\t
stfd 31,-8(1)
\n
"
);
fprintf
(
file
,
"
\t
stfd 30,-16(1)
\n\t
stfd 31,-8(1)
\n
"
);
else
if
(
first_fp_reg
==
63
)
else
if
(
first_fp_reg
==
63
)
fprintf
(
file
,
"
\t
stfd 31,-8(1)
\n
"
);
fprintf
(
file
,
"
\t
stfd 31,-8(1)
\n
"
);
else
if
(
first_fp_reg
!=
64
)
else
if
(
first_fp_reg
!=
64
)
fprintf
(
file
,
"
\t
bl ._savef%d
\n\t
cror %d,%d,%d
\n
"
,
first_fp_reg
-
32
,
fprintf
(
file
,
"
\t
bl ._savef%d
\n
"
,
first_fp_reg
-
32
);
RS6000_CROR_BIT_NUMBER
,
RS6000_CROR_BIT_NUMBER
,
RS6000_CROR_BIT_NUMBER
);
/* Now save gpr's. */
/* Now save gpr's. */
if
(
first_reg
==
31
)
if
(
first_reg
==
31
)
...
@@ -1443,9 +1442,7 @@ output_epilog (file, size)
...
@@ -1443,9 +1442,7 @@ output_epilog (file, size)
/* If we have to restore more than two FP registers, branch to the
/* If we have to restore more than two FP registers, branch to the
restore function. It will return to our caller. */
restore function. It will return to our caller. */
if
(
first_fp_reg
<
62
)
if
(
first_fp_reg
<
62
)
fprintf
(
file
,
"
\t
b ._restf%d
\n\t
cror %d,%d,%d
\n
"
,
first_fp_reg
-
32
,
fprintf
(
file
,
"
\t
b ._restf%d
\n
"
,
first_fp_reg
-
32
);
RS6000_CROR_BIT_NUMBER
,
RS6000_CROR_BIT_NUMBER
,
RS6000_CROR_BIT_NUMBER
);
else
else
fprintf
(
file
,
"
\t
br
\n
"
);
fprintf
(
file
,
"
\t
br
\n
"
);
}
}
...
...
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