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
c77c9766
Commit
c77c9766
authored
Feb 11, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(gen_input_reload): If reg-reg add is not valid, try copying reg-reg
and adding reg-int. From-SVN: r6530
parent
98aad286
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletions
+21
-1
gcc/reload1.c
+21
-1
No files found.
gcc/reload1.c
View file @
c77c9766
...
...
@@ -6544,7 +6544,27 @@ gen_input_reload (reloadreg, in, opnum, type)
if
(
rtx_equal_p
(
op0
,
op1
))
op1
=
reloadreg
;
emit_insn
(
gen_add2_insn
(
reloadreg
,
op1
));
insn
=
emit_insn
(
gen_add2_insn
(
reloadreg
,
op1
));
/* If that failed, copy the address register to the reload register.
Then add the constant to the reload register. */
code
=
recog_memoized
(
insn
);
if
(
code
>=
0
)
{
insn_extract
(
insn
);
/* We want constrain operands to treat this insn strictly in
its validity determination, i.e., the way it would after reload
has completed. */
if
(
constrain_operands
(
code
,
1
))
return
insn
;
}
delete_insns_since
(
last
);
emit_insn
(
gen_move_insn
(
reloadreg
,
op1
));
emit_insn
(
gen_add2_insn
(
reloadreg
,
op0
));
}
#ifdef SECONDARY_MEMORY_NEEDED
...
...
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