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
d3bc8938
Commit
d3bc8938
authored
May 30, 2000
by
Richard Henderson
Committed by
Richard Henderson
May 30, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* combine.c (get_pos_from_mask): Test exact_log2 result as signed.
From-SVN: r34280
parent
efc70584
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
gcc/ChangeLog
+4
-0
gcc/combine.c
+4
-2
No files found.
gcc/ChangeLog
View file @
d3bc8938
2000-05-30 Richard Henderson <rth@cygnus.com>
* combine.c (get_pos_from_mask): Test exact_log2 result as signed.
2000-05-30 Richard Henderson <rth@cygnus.com>
* bb-reorder.c (emit_jump_to_block_after): Protect use of HAVE_return.
2000-05-30 Bruce Korb <bkorb@gnu.org>
...
...
gcc/combine.c
View file @
d3bc8938
...
...
@@ -6588,17 +6588,19 @@ get_pos_from_mask (m, plen)
{
/* Get the bit number of the first 1 bit from the right, -1 if none. */
int
pos
=
exact_log2
(
m
&
-
m
);
int
len
;
if
(
pos
<
0
)
return
-
1
;
/* Now shift off the low-order zero bits and see if we have a power of
two minus 1. */
*
p
len
=
exact_log2
((
m
>>
pos
)
+
1
);
len
=
exact_log2
((
m
>>
pos
)
+
1
);
if
(
*
p
len
<=
0
)
if
(
len
<=
0
)
return
-
1
;
*
plen
=
len
;
return
pos
;
}
...
...
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