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
2c0623e8
Commit
2c0623e8
authored
Mar 30, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(form_sum): Use mode of inputs when making new PLUS.
From-SVN: r3928
parent
118bdbf8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
gcc/reload.c
+9
-2
No files found.
gcc/reload.c
View file @
2c0623e8
...
@@ -4138,6 +4138,13 @@ form_sum (x, y)
...
@@ -4138,6 +4138,13 @@ form_sum (x, y)
rtx
x
,
y
;
rtx
x
,
y
;
{
{
rtx
tem
;
rtx
tem
;
enum
machine_mode
mode
=
GET_MODE
(
x
);
if
(
mode
==
VOIDmode
)
mode
=
GET_MODE
(
y
);
if
(
mode
==
VOIDmode
)
mode
=
Pmode
;
if
(
GET_CODE
(
x
)
==
CONST_INT
)
if
(
GET_CODE
(
x
)
==
CONST_INT
)
return
plus_constant
(
y
,
INTVAL
(
x
));
return
plus_constant
(
y
,
INTVAL
(
x
));
...
@@ -4163,10 +4170,10 @@ form_sum (x, y)
...
@@ -4163,10 +4170,10 @@ form_sum (x, y)
if
(
GET_CODE
(
y
)
==
CONST
)
if
(
GET_CODE
(
y
)
==
CONST
)
y
=
XEXP
(
y
,
0
);
y
=
XEXP
(
y
,
0
);
return
gen_rtx
(
CONST
,
VOIDmode
,
gen_rtx
(
PLUS
,
P
mode
,
x
,
y
));
return
gen_rtx
(
CONST
,
VOIDmode
,
gen_rtx
(
PLUS
,
mode
,
x
,
y
));
}
}
return
gen_rtx
(
PLUS
,
P
mode
,
x
,
y
);
return
gen_rtx
(
PLUS
,
mode
,
x
,
y
);
}
}
/* If ADDR is a sum containing a pseudo register that should be
/* If ADDR is a sum containing a pseudo register that should be
...
...
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