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
46da6b3a
Commit
46da6b3a
authored
Sep 20, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(find_reloads, find_reloads_toplev): Treat BYTE_LOADS_SIGN_EXTEND just
like BYTE_LOADS_ZERO_EXTEND. From-SVN: r2188
parent
3934c98b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
gcc/reload.c
+6
-6
No files found.
gcc/reload.c
View file @
46da6b3a
...
@@ -2285,18 +2285,18 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
...
@@ -2285,18 +2285,18 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
/* Force reload if this is not a register or if there may may
/* Force reload if this is not a register or if there may may
be a problem accessing the register in the outer mode. */
be a problem accessing the register in the outer mode. */
if
(
GET_CODE
(
operand
)
!=
REG
if
(
GET_CODE
(
operand
)
!=
REG
#if
def BYTE_LOADS_ZERO_EXTEND
#if
defined(BYTE_LOADS_ZERO_EXTEND) || defined(BYTE_LOADS_SIGN_EXTEND)
/* The comment below clearly does not match the code.
/*
???
The comment below clearly does not match the code.
What the code below actually does is set force_reload
What the code below actually does is set force_reload
for a paradoxical subreg of a pseudo. rms and kenner
for a paradoxical subreg of a pseudo. rms and kenner
can't see the point of doing this. */
can't see the point of doing this. */
/* Nonparadoxical subreg of a pseudoreg.
/* Nonparadoxical subreg of a pseudoreg.
Don't to load the full width if on this machine
Don't to load the full width if on this machine
we expected the fetch to
zero-
extend. */
we expected the fetch to extend. */
||
((
GET_MODE_SIZE
(
operand_mode
[
i
])
||
((
GET_MODE_SIZE
(
operand_mode
[
i
])
>
GET_MODE_SIZE
(
GET_MODE
(
operand
)))
>
GET_MODE_SIZE
(
GET_MODE
(
operand
)))
&&
REGNO
(
operand
)
>=
FIRST_PSEUDO_REGISTER
)
&&
REGNO
(
operand
)
>=
FIRST_PSEUDO_REGISTER
)
#endif
/* BYTE_LOADS_ZERO_EXTEND */
#endif
/* Subreg of a hard reg which can't handle the subreg's mode
/* Subreg of a hard reg which can't handle the subreg's mode
or which would handle that mode in the wrong number of
or which would handle that mode in the wrong number of
registers for subregging to work. */
registers for subregging to work. */
...
@@ -3422,12 +3422,12 @@ find_reloads_toplev (x, ind_levels, is_set_dest)
...
@@ -3422,12 +3422,12 @@ find_reloads_toplev (x, ind_levels, is_set_dest)
not offsettable. In that case, alter_subreg would produce an
not offsettable. In that case, alter_subreg would produce an
invalid address on big-endian machines.
invalid address on big-endian machines.
For machines that
zero-
extend byte loads, we must not reload using
For machines that extend byte loads, we must not reload using
a wider mode if we have a paradoxical SUBREG. find_reloads will
a wider mode if we have a paradoxical SUBREG. find_reloads will
force a reload in that case. So we should not do anything here. */
force a reload in that case. So we should not do anything here. */
else
if
(
regno
>=
FIRST_PSEUDO_REGISTER
else
if
(
regno
>=
FIRST_PSEUDO_REGISTER
#if
def BYTE_LOADS_ZERO_EXTEND
#if
defined(BYTE_LOADS_ZERO_EXTEND) || defined(BYTE_LOADS_SIGN_EXTEND)
&&
(
GET_MODE_SIZE
(
GET_MODE
(
x
))
&&
(
GET_MODE_SIZE
(
GET_MODE
(
x
))
<=
GET_MODE_SIZE
(
GET_MODE
(
SUBREG_REG
(
x
))))
<=
GET_MODE_SIZE
(
GET_MODE
(
SUBREG_REG
(
x
))))
#endif
#endif
...
...
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