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
4757e6a4
Commit
4757e6a4
authored
Feb 04, 1997
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(find_reloads_address_1, case POST_INC): Don't use
ADDR_TYPE here. From-SVN: r13608
parent
ac684a20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
gcc/reload.c
+9
-3
No files found.
gcc/reload.c
View file @
4757e6a4
...
@@ -4855,9 +4855,12 @@ find_reloads_address_1 (mode, x, context, loc, opnum, type, ind_levels)
...
@@ -4855,9 +4855,12 @@ find_reloads_address_1 (mode, x, context, loc, opnum, type, ind_levels)
if
(
reg_equiv_address
[
regno
]
!=
0
)
if
(
reg_equiv_address
[
regno
]
!=
0
)
{
{
rtx
tem
=
make_memloc
(
XEXP
(
x
,
0
),
regno
);
rtx
tem
=
make_memloc
(
XEXP
(
x
,
0
),
regno
);
/* First reload the memory location's address. */
/* First reload the memory location's address.
We can't use ADDR_TYPE (type) here, because we need to
write back the value after reading it, hence we actually
need two registers. */
find_reloads_address
(
GET_MODE
(
tem
),
0
,
XEXP
(
tem
,
0
),
find_reloads_address
(
GET_MODE
(
tem
),
0
,
XEXP
(
tem
,
0
),
&
XEXP
(
tem
,
0
),
opnum
,
ADDR_TYPE
(
type
)
,
&
XEXP
(
tem
,
0
),
opnum
,
type
,
ind_levels
);
ind_levels
);
/* Put this inside a new increment-expression. */
/* Put this inside a new increment-expression. */
x
=
gen_rtx
(
GET_CODE
(
x
),
GET_MODE
(
x
),
tem
);
x
=
gen_rtx
(
GET_CODE
(
x
),
GET_MODE
(
x
),
tem
);
...
@@ -4924,9 +4927,12 @@ find_reloads_address_1 (mode, x, context, loc, opnum, type, ind_levels)
...
@@ -4924,9 +4927,12 @@ find_reloads_address_1 (mode, x, context, loc, opnum, type, ind_levels)
Note that this is actually conservative: it would be slightly
Note that this is actually conservative: it would be slightly
more efficient to use the value of SPILL_INDIRECT_LEVELS from
more efficient to use the value of SPILL_INDIRECT_LEVELS from
reload1.c here. */
reload1.c here. */
/* We can't use ADDR_TYPE (type) here, because we need to
write back the value after reading it, hence we actually
need two registers. */
find_reloads_address
(
GET_MODE
(
x
),
&
XEXP
(
x
,
0
),
find_reloads_address
(
GET_MODE
(
x
),
&
XEXP
(
x
,
0
),
XEXP
(
XEXP
(
x
,
0
),
0
),
&
XEXP
(
XEXP
(
x
,
0
),
0
),
XEXP
(
XEXP
(
x
,
0
),
0
),
&
XEXP
(
XEXP
(
x
,
0
),
0
),
opnum
,
ADDR_TYPE
(
type
)
,
ind_levels
);
opnum
,
type
,
ind_levels
);
reloadnum
=
push_reload
(
x
,
NULL_RTX
,
loc
,
NULL_PTR
,
reloadnum
=
push_reload
(
x
,
NULL_RTX
,
loc
,
NULL_PTR
,
(
context
(
context
...
...
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