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
d0c6176a
Commit
d0c6176a
authored
Apr 20, 1994
by
Doug Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(choose_hard_reg_mode): Delete from here.
From-SVN: r7086
parent
bf76bb5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
41 deletions
+0
-41
gcc/caller-save.c
+0
-41
No files found.
gcc/caller-save.c
View file @
d0c6176a
...
...
@@ -77,53 +77,12 @@ static HARD_REG_SET hard_regs_need_restore;
int
n_regs_saved
;
static
enum
machine_mode
choose_hard_reg_mode
PROTO
((
int
,
int
));
static
void
set_reg_live
PROTO
((
rtx
,
rtx
));
static
void
clear_reg_live
PROTO
((
rtx
));
static
void
restore_referenced_regs
PROTO
((
rtx
,
rtx
,
enum
machine_mode
));
static
int
insert_save_restore
PROTO
((
rtx
,
int
,
int
,
enum
machine_mode
,
int
));
/* Return a machine mode that is legitimate for hard reg REGNO and large
enough to save nregs. If we can't find one, return VOIDmode. */
static
enum
machine_mode
choose_hard_reg_mode
(
regno
,
nregs
)
int
regno
;
int
nregs
;
{
enum
machine_mode
found_mode
=
VOIDmode
,
mode
;
/* We first look for the largest integer mode that can be validly
held in REGNO. If none, we look for the largest floating-point mode.
If we still didn't find a valid mode, try CCmode. */
for
(
mode
=
GET_CLASS_NARROWEST_MODE
(
MODE_INT
);
mode
!=
VOIDmode
;
mode
=
GET_MODE_WIDER_MODE
(
mode
))
if
(
HARD_REGNO_NREGS
(
regno
,
mode
)
==
nregs
&&
HARD_REGNO_MODE_OK
(
regno
,
mode
))
found_mode
=
mode
;
if
(
found_mode
!=
VOIDmode
)
return
found_mode
;
for
(
mode
=
GET_CLASS_NARROWEST_MODE
(
MODE_FLOAT
);
mode
!=
VOIDmode
;
mode
=
GET_MODE_WIDER_MODE
(
mode
))
if
(
HARD_REGNO_NREGS
(
regno
,
mode
)
==
nregs
&&
HARD_REGNO_MODE_OK
(
regno
,
mode
))
found_mode
=
mode
;
if
(
found_mode
!=
VOIDmode
)
return
found_mode
;
if
(
HARD_REGNO_NREGS
(
regno
,
CCmode
)
==
nregs
&&
HARD_REGNO_MODE_OK
(
regno
,
CCmode
))
return
CCmode
;
/* We can't find a mode valid for this register. */
return
VOIDmode
;
}
/* Initialize for caller-save.
Look at all the hard registers that are used by a call and for which
...
...
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