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
f635a84d
Commit
f635a84d
authored
Mar 01, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(store_expr): Do conversion in two steps for promoted lhs.
From-SVN: r9098
parent
d72471fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
gcc/expr.c
+16
-4
No files found.
gcc/expr.c
View file @
f635a84d
...
...
@@ -2743,11 +2743,23 @@ store_expr (exp, target, want_value)
expression. */
{
/* If we don't want a value, we can do the conversion inside EXP,
which will often result in some optimizations. */
which will often result in some optimizations. Do the conversion
in two steps: first change the signedness, if needed, then
the extend. */
if
(
!
want_value
)
exp
=
convert
(
type_for_mode
(
GET_MODE
(
SUBREG_REG
(
target
)),
SUBREG_PROMOTED_UNSIGNED_P
(
target
)),
exp
);
{
if
(
TREE_UNSIGNED
(
TREE_TYPE
(
exp
))
!=
SUBREG_PROMOTED_UNSIGNED_P
(
target
))
exp
=
convert
(
signed_or_unsigned_type
(
SUBREG_PROMOTED_UNSIGNED_P
(
target
),
TREE_TYPE
(
exp
)),
exp
);
exp
=
convert
(
type_for_mode
(
GET_MODE
(
SUBREG_REG
(
target
)),
SUBREG_PROMOTED_UNSIGNED_P
(
target
)),
exp
);
}
temp
=
expand_expr
(
exp
,
NULL_RTX
,
VOIDmode
,
0
);
...
...
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