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
e8094962
Commit
e8094962
authored
Apr 04, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r686
parent
abf977d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletions
+26
-1
gcc/reload.c
+26
-1
No files found.
gcc/reload.c
View file @
e8094962
...
...
@@ -4463,6 +4463,7 @@ find_equiv_reg (goal, insn, class, other, reload_reg_p, goalreg, mode)
because it was assumed we would find that equivalent. */
||
INSN_UID
(
p
)
<
reload_first_uid
))
{
rtx
tem
;
pat
=
single_set
(
p
);
/* First check for something that sets some reg equal to GOAL. */
if
(
pat
!=
0
...
...
@@ -4481,7 +4482,31 @@ find_equiv_reg (goal, insn, class, other, reload_reg_p, goalreg, mode)
&&
rtx_renumbered_equal_p
(
goal
,
SET_SRC
(
pat
)))
||
(
goal_mem
&&
(
valueno
=
true_regnum
(
valtry
=
SET_SRC
(
pat
)))
>=
0
&&
rtx_renumbered_equal_p
(
goal
,
SET_DEST
(
pat
)))))
&&
rtx_renumbered_equal_p
(
goal
,
SET_DEST
(
pat
)))
/* If we are looking for a constant,
and something equivalent to that constant was copied
into a reg, we can use that reg. */
||
(
goal_const
&&
(
tem
=
find_reg_note
(
p
,
REG_EQUIV
,
0
))
&&
rtx_equal_p
(
XEXP
(
tem
,
0
),
goal
)
&&
(
valueno
=
true_regnum
(
valtry
=
SET_DEST
(
pat
))))
||
(
goal_const
&&
(
tem
=
find_reg_note
(
p
,
REG_EQUIV
,
0
))
&&
GET_CODE
(
SET_DEST
(
pat
))
==
REG
&&
GET_CODE
(
XEXP
(
tem
,
0
))
==
CONST_DOUBLE
&&
GET_MODE_CLASS
(
GET_MODE
(
XEXP
(
tem
,
0
)))
==
MODE_FLOAT
&&
GET_CODE
(
goal
)
==
CONST_INT
&&
INTVAL
(
goal
)
==
CONST_DOUBLE_LOW
(
XEXP
(
tem
,
0
))
&&
(
valtry
=
operand_subword
(
SET_DEST
(
pat
),
0
,
0
,
VOIDmode
))
&&
(
valueno
=
true_regnum
(
valtry
)))
||
(
goal_const
&&
(
tem
=
find_reg_note
(
p
,
REG_EQUIV
,
0
))
&&
GET_CODE
(
SET_DEST
(
pat
))
==
REG
&&
GET_CODE
(
XEXP
(
tem
,
0
))
==
CONST_DOUBLE
&&
GET_MODE_CLASS
(
GET_MODE
(
XEXP
(
tem
,
0
)))
==
MODE_FLOAT
&&
GET_CODE
(
goal
)
==
CONST_INT
&&
INTVAL
(
goal
)
==
CONST_DOUBLE_HIGH
(
XEXP
(
tem
,
0
))
&&
(
valtry
=
operand_subword
(
SET_DEST
(
pat
),
1
,
0
,
VOIDmode
))
&&
(
valueno
=
true_regnum
(
valtry
)))))
if
(
other
>=
0
?
valueno
==
other
:
((
unsigned
)
valueno
<
FIRST_PSEUDO_REGISTER
...
...
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