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
3d709ff0
Commit
3d709ff0
authored
Nov 15, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(store_split_bit_field): Properly load a constant VALUE
into a WORD_MODE pseudo. From-SVN: r6092
parent
ba83886f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
gcc/expmed.c
+12
-6
No files found.
gcc/expmed.c
View file @
3d709ff0
...
...
@@ -682,15 +682,21 @@ store_split_bit_field (op0, bitsize, bitpos, value, align)
/* Make sure UNIT isn't larger than BITS_PER_WORD, we can only handle that
much at a time. */
int
unit
=
MIN
(
align
*
BITS_PER_UNIT
,
BITS_PER_WORD
);
rtx
word
;
int
bitsdone
=
0
;
if
(
GET_CODE
(
value
)
==
CONST_DOUBLE
&&
(
word
=
gen_lowpart_common
(
word_mode
,
value
))
!=
0
)
value
=
word
;
/* If VALUE is a constant other than a CONST_INT, get it into a register in
WORD_MODE. If we can do this using gen_lowpart_common, do so. Note
that VALUE might be a floating-point constant. */
if
(
CONSTANT_P
(
value
)
&&
GET_CODE
(
value
)
!=
CONST_INT
)
value
=
copy_to_mode_reg
(
word_mode
,
value
);
{
rtx
word
=
gen_lowpart_common
(
word_mode
,
value
);
if
(
word
)
value
=
word
;
else
value
=
gen_lowpart_common
(
word_mode
,
force_reg
(
GET_MODE
(
value
),
value
));
}
while
(
bitsdone
<
bitsize
)
{
...
...
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