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
8700c494
Commit
8700c494
authored
Aug 14, 1994
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(calculate_giv_inc): Handle constants loaded with IOR.
From-SVN: r7918
parent
bbd4b75b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletions
+17
-1
gcc/unroll.c
+17
-1
No files found.
gcc/unroll.c
View file @
8700c494
...
...
@@ -1335,11 +1335,27 @@ calculate_giv_inc (pattern, src_insn, regno)
one of the LO_SUM rtx. */
if
(
GET_CODE
(
increment
)
==
LO_SUM
)
increment
=
XEXP
(
increment
,
1
);
else
if
(
GET_CODE
(
increment
)
==
IOR
)
{
/* The rs6000 port loads some constants with IOR. */
rtx
second_part
=
XEXP
(
increment
,
1
);
src_insn
=
PREV_INSN
(
src_insn
);
increment
=
SET_SRC
(
PATTERN
(
src_insn
));
/* Don't need the last insn anymore. */
delete_insn
(
get_last_insn
());
if
(
GET_CODE
(
second_part
)
!=
CONST_INT
||
GET_CODE
(
increment
)
!=
CONST_INT
)
abort
();
increment
=
GEN_INT
(
INTVAL
(
increment
)
|
INTVAL
(
second_part
));
}
if
(
GET_CODE
(
increment
)
!=
CONST_INT
)
abort
();
/* The insn loading the constant into a register is no
t
longer needed,
/* The insn loading the constant into a register is no longer needed,
so delete it. */
delete_insn
(
get_last_insn
());
}
...
...
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