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
374de9e2
Commit
374de9e2
authored
Jun 01, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(extract_fixed_bit_field): For REG case, compute total_bits from mode
instead of assuming BITS_PER_WORD. From-SVN: r9865
parent
5d36722d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
gcc/expmed.c
+4
-3
No files found.
gcc/expmed.c
View file @
374de9e2
...
...
@@ -1362,7 +1362,7 @@ extract_fixed_bit_field (tmode, op0, offset, bitsize, bitpos,
int
unsignedp
;
int
align
;
{
int
total_bits
=
BITS_PER_WORD
;
int
total_bits
;
enum
machine_mode
mode
;
if
(
GET_CODE
(
op0
)
==
SUBREG
||
GET_CODE
(
op0
)
==
REG
)
...
...
@@ -1371,6 +1371,9 @@ extract_fixed_bit_field (tmode, op0, offset, bitsize, bitpos,
if
(
bitsize
+
bitpos
>
BITS_PER_WORD
)
return
extract_split_bit_field
(
op0
,
bitsize
,
bitpos
,
unsignedp
,
align
);
mode
=
GET_MODE
(
op0
);
total_bits
=
GET_MODE_BITSIZE
(
mode
);
}
else
{
...
...
@@ -1411,8 +1414,6 @@ extract_fixed_bit_field (tmode, op0, offset, bitsize, bitpos,
plus_constant
(
XEXP
(
op0
,
0
),
offset
));
}
mode
=
GET_MODE
(
op0
);
if
(
BYTES_BIG_ENDIAN
)
{
/* BITPOS is the distance between our msb and that of OP0.
...
...
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