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
ff428c90
Commit
ff428c90
authored
Oct 23, 1996
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Accept a unary operator in find_reloads
From-SVN: r13016
parent
1e1eb6c5
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 @
ff428c90
...
...
@@ -2533,9 +2533,10 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
ind_levels
,
set
!=
0
&&
&
SET_DEST
(
set
)
==
recog_operand_loc
[
i
]);
else
if
(
code
==
PLUS
)
/* We can get a PLUS as an "operand" as a result of
register elimination. See eliminate_regs and gen_reload. */
else
if
(
code
==
PLUS
||
GET_RTX_CLASS
(
code
)
==
'1'
)
/* We can get a PLUS as an "operand" as a result of register
elimination. See eliminate_regs and gen_reload. We handle
a unary operator by reloading the operand. */
substed_operand
[
i
]
=
recog_operand
[
i
]
=
*
recog_operand_loc
[
i
]
=
find_reloads_toplev
(
recog_operand
[
i
],
i
,
address_type
[
i
],
ind_levels
,
0
);
...
...
@@ -2674,6 +2675,11 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
int
constmemok
=
0
;
int
earlyclobber
=
0
;
/* If the predicate accepts a unary operator, it means that
we need to reload the operand. */
if
(
GET_RTX_CLASS
(
GET_CODE
(
operand
))
==
'1'
)
operand
=
XEXP
(
operand
,
0
);
/* If the operand is a SUBREG, extract
the REG or MEM (or maybe even a constant) within.
(Constants can occur as a result of reg_equiv_constant.) */
...
...
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