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
3cd45606
Commit
3cd45606
authored
May 17, 1996
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(store_split_bit_field): Don't assume the alignment of VALUE is the
same as the record. From-SVN: r12017
parent
8a5d3064
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
6 deletions
+21
-6
gcc/expmed.c
+21
-6
No files found.
gcc/expmed.c
View file @
3cd45606
...
...
@@ -781,10 +781,19 @@ store_split_bit_field (op0, bitsize, bitpos, value, align)
else
/* The args are chosen so that the last part includes the
lsb. Give extract_bit_field the value it needs (with
endianness compensation) to fetch the piece we want. */
part
=
extract_fixed_bit_field
(
word_mode
,
value
,
0
,
thissize
,
total_bits
-
bitsize
+
bitsdone
,
NULL_RTX
,
1
,
align
);
endianness compensation) to fetch the piece we want.
??? We have no idea what the alignment of VALUE is, so
we have to use a guess. */
part
=
extract_fixed_bit_field
(
word_mode
,
value
,
0
,
thissize
,
total_bits
-
bitsize
+
bitsdone
,
NULL_RTX
,
1
,
GET_MODE
(
value
)
==
VOIDmode
?
UNITS_PER_WORD
:
(
GET_MODE
(
value
)
==
BLKmode
?
1
:
GET_MODE_ALIGNMENT
(
GET_MODE
(
value
))
/
BITS_PER_UNIT
));
}
else
{
...
...
@@ -794,8 +803,14 @@ store_split_bit_field (op0, bitsize, bitpos, value, align)
>>
bitsdone
)
&
(((
HOST_WIDE_INT
)
1
<<
thissize
)
-
1
));
else
part
=
extract_fixed_bit_field
(
word_mode
,
value
,
0
,
thissize
,
bitsdone
,
NULL_RTX
,
1
,
align
);
part
=
extract_fixed_bit_field
(
word_mode
,
value
,
0
,
thissize
,
bitsdone
,
NULL_RTX
,
1
,
GET_MODE
(
value
)
==
VOIDmode
?
UNITS_PER_WORD
:
(
GET_MODE
(
value
)
==
BLKmode
?
1
:
GET_MODE_ALIGNMENT
(
GET_MODE
(
value
))
/
BITS_PER_UNIT
));
}
/* If OP0 is a register, then handle OFFSET here.
...
...
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