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
b47de04b
Commit
b47de04b
authored
Jan 19, 1993
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(cmplpower2_operand): New function.
From-SVN: r3293
parent
4ec74aeb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletions
+15
-1
gcc/config/i960/i960.c
+15
-1
No files found.
gcc/config/i960/i960.c
View file @
b47de04b
...
@@ -296,12 +296,26 @@ power2_operand (op,mode)
...
@@ -296,12 +296,26 @@ power2_operand (op,mode)
rtx
op
;
rtx
op
;
enum
machine_mode
mode
;
enum
machine_mode
mode
;
{
{
if
(
GET_CODE
(
op
)
!=
CONST_INT
)
if
(
GET_CODE
(
op
)
!=
CONST_INT
)
return
0
;
return
0
;
return
exact_log2
(
INTVAL
(
op
))
>=
0
;
return
exact_log2
(
INTVAL
(
op
))
>=
0
;
}
}
/* Return true if OP is an integer constant which is the complement of a
power of 2. */
int
cmplpower2_operand
(
op
,
mode
)
rtx
op
;
enum
machine_mode
mode
;
{
if
(
GET_CODE
(
op
)
!=
CONST_INT
)
return
0
;
return
exact_log2
(
~
INTVAL
(
op
))
>=
0
;
}
/* If VAL has only one bit set, return the index of that bit. Otherwise
/* If VAL has only one bit set, return the index of that bit. Otherwise
return -1. */
return -1. */
...
...
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