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
f4f56bb7
Commit
f4f56bb7
authored
Oct 31, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(mark_set_resources): Properly handle SUBREGs.
From-SVN: r8364
parent
73620b82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
gcc/reorg.c
+16
-0
No files found.
gcc/reorg.c
View file @
f4f56bb7
...
@@ -607,6 +607,22 @@ mark_set_resources (x, res, in_dest, include_delayed_effects)
...
@@ -607,6 +607,22 @@ mark_set_resources (x, res, in_dest, include_delayed_effects)
mark_set_resources
(
XEXP
(
x
,
0
),
res
,
0
,
0
);
mark_set_resources
(
XEXP
(
x
,
0
),
res
,
0
,
0
);
return
;
return
;
case
SUBREG
:
if
(
in_dest
)
{
if
(
GET_CODE
(
SUBREG_REG
(
x
))
!=
REG
)
mark_set_resources
(
SUBREG_REG
(
x
),
res
,
in_dest
,
include_delayed_effects
);
else
{
int
regno
=
REGNO
(
SUBREG_REG
(
x
))
+
SUBREG_WORD
(
x
);
int
last_regno
=
regno
+
HARD_REGNO_NREGS
(
regno
,
GET_MODE
(
x
));
for
(
i
=
regno
;
i
<
last_regno
;
i
++
)
SET_HARD_REG_BIT
(
res
->
regs
,
i
);
}
}
return
;
case
REG
:
case
REG
:
if
(
in_dest
)
if
(
in_dest
)
for
(
i
=
0
;
i
<
HARD_REGNO_NREGS
(
REGNO
(
x
),
GET_MODE
(
x
));
i
++
)
for
(
i
=
0
;
i
<
HARD_REGNO_NREGS
(
REGNO
(
x
),
GET_MODE
(
x
));
i
++
)
...
...
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