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
ad578014
Commit
ad578014
authored
Apr 13, 1997
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get the modes right when setting reg_values for a reg to reg copy
From-SVN: r13896
parent
3e42d56b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletions
+23
-1
gcc/reload1.c
+23
-1
No files found.
gcc/reload1.c
View file @
ad578014
...
@@ -8215,7 +8215,29 @@ reload_cse_record_set (set, body)
...
@@ -8215,7 +8215,29 @@ reload_cse_record_set (set, body)
/* This is an assignment to a register. Update the value we
/* This is an assignment to a register. Update the value we
have stored for the register. */
have stored for the register. */
if
(
sreg
>=
0
)
if
(
sreg
>=
0
)
reg_values
[
dreg
]
=
reg_values
[
sreg
];
{
rtx
x
;
/* This is a copy from one register to another. Any values
which were valid for SREG are now valid for DREG. If the
mode changes, we use gen_lowpart_common to extract only
the part of the value that is copied. */
reg_values
[
dreg
]
=
0
;
for
(
x
=
reg_values
[
sreg
];
x
;
x
=
XEXP
(
x
,
1
))
{
rtx
tmp
;
if
(
XEXP
(
x
,
0
)
==
0
)
continue
;
if
(
dest_mode
==
GET_MODE
(
XEXP
(
x
,
0
)))
tmp
=
XEXP
(
x
,
0
);
else
tmp
=
gen_lowpart_common
(
dest_mode
,
XEXP
(
x
,
0
));
if
(
tmp
)
reg_values
[
dreg
]
=
gen_rtx
(
EXPR_LIST
,
dest_mode
,
tmp
,
reg_values
[
dreg
]);
}
}
else
else
reg_values
[
dreg
]
=
gen_rtx
(
EXPR_LIST
,
dest_mode
,
src
,
NULL_RTX
);
reg_values
[
dreg
]
=
gen_rtx
(
EXPR_LIST
,
dest_mode
,
src
,
NULL_RTX
);
...
...
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