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
f5df292e
Commit
f5df292e
authored
Dec 27, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(store_bit_field): If VALUE needs to be narrowed, do
it with gen_lowpart, not an explicit SUBREG. From-SVN: r2920
parent
66212c2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
gcc/expmed.c
+10
-4
No files found.
gcc/expmed.c
View file @
f5df292e
...
...
@@ -402,12 +402,18 @@ store_bit_field (str_rtx, bitsize, bitnum, fieldmode, value, align, total_size)
if
(
GET_MODE_BITSIZE
(
GET_MODE
(
value
))
>=
bitsize
)
{
/* Optimization: Don't bother really extending VALUE
if it has all the bits we will actually use. */
if it has all the bits we will actually use. However,
if we must narrow it, be sure we do it correctly. */
/* Avoid making subreg of a subreg, or of a mem. */
if
(
GET_CODE
(
value1
)
!=
REG
)
if
(
GET_MODE_SIZE
(
GET_MODE
(
value
))
<
GET_MODE_SIZE
(
maxmode
))
{
/* Avoid making subreg of a subreg, or of a mem. */
if
(
GET_CODE
(
value1
)
!=
REG
)
value1
=
copy_to_reg
(
value1
);
value1
=
gen_rtx
(
SUBREG
,
maxmode
,
value1
,
0
);
value1
=
gen_rtx
(
SUBREG
,
maxmode
,
value1
,
0
);
}
else
value1
=
gen_lowpart
(
maxmode
,
value1
);
}
else
if
(
!
CONSTANT_P
(
value
))
/* Parse phase is supposed to make VALUE's data type
...
...
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