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
e5671f2b
Commit
e5671f2b
authored
Jun 25, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r1281
parent
cd10f7b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
gcc/explow.c
+8
-12
No files found.
gcc/explow.c
View file @
e5671f2b
...
...
@@ -99,17 +99,13 @@ plus_constant (x, c)
Look for constant term in the sum and combine
with C. For an integer constant term, we make a combined
integer. For a constant term that is not an explicit integer,
we cannot really combine, but group them together anyway. */
if
(
GET_CODE
(
XEXP
(
x
,
0
))
==
CONST_INT
)
{
c
+=
INTVAL
(
XEXP
(
x
,
0
));
x
=
XEXP
(
x
,
1
);
}
else
if
(
GET_CODE
(
XEXP
(
x
,
1
))
==
CONST_INT
)
{
c
+=
INTVAL
(
XEXP
(
x
,
1
));
x
=
XEXP
(
x
,
0
);
}
we cannot really combine, but group them together anyway.
Use a recursive call in case the remaining operand is something
that we handle specially, such as a SYMBOL_REF. */
if
(
GET_CODE
(
XEXP
(
x
,
1
))
==
CONST_INT
)
return
plus_constant
(
XEXP
(
x
,
0
),
c
+
INTVAL
(
XEXP
(
x
,
1
)));
else
if
(
CONSTANT_P
(
XEXP
(
x
,
0
)))
return
gen_rtx
(
PLUS
,
mode
,
plus_constant
(
XEXP
(
x
,
0
),
c
),
...
...
@@ -131,7 +127,7 @@ plus_constant (x, c)
return
x
;
}
/* This is the same a `plus_constant', except that it handles LO_SUM. */
/* This is the same a
s
`plus_constant', except that it handles LO_SUM. */
rtx
plus_constant_for_output
(
x
,
c
)
...
...
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