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
9b3fad96
Commit
9b3fad96
authored
Oct 05, 1993
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(uns_small_int, uns_arith_operand): New functions.
From-SVN: r5626
parent
a56e7133
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
gcc/config/sparc/sparc.c
+30
-0
No files found.
gcc/config/sparc/sparc.c
View file @
9b3fad96
...
@@ -434,6 +434,36 @@ small_int (op, mode)
...
@@ -434,6 +434,36 @@ small_int (op, mode)
return
(
GET_CODE
(
op
)
==
CONST_INT
&&
SMALL_INT
(
op
));
return
(
GET_CODE
(
op
)
==
CONST_INT
&&
SMALL_INT
(
op
));
}
}
/* Recognize operand values for the umul instruction. That instruction sign
extends immediate values just like all other sparc instructions, but
interprets the extended result as an unsigned number. */
int
uns_small_int
(
op
,
mode
)
rtx
op
;
enum
machine_mode
mode
;
{
#if HOST_BITS_PER_WIDE_INT > 32
/* All allowed constants will fit a CONST_INT. */
return
(
GET_CODE
(
op
)
==
CONST_INT
&&
((
INTVAL
(
op
)
>=
0
&&
INTVAL
(
op
)
<
0x1000
)
||
(
INTVAL
(
op
)
>=
0xFFFFF000
&&
INTVAL
(
op
)
<
0x100000000L
)));
#else
return
((
GET_CODE
(
op
)
==
CONST_INT
&&
(
unsigned
)
INTVAL
(
op
)
<
0x1000
)
||
(
GET_CODE
(
op
)
==
CONST_DOUBLE
&&
CONST_DOUBLE_HIGH
(
op
)
==
0
&&
(
unsigned
)
CONST_DOUBLE_LOW
(
op
)
-
0xFFFFF000
<
0x1000
));
#endif
}
int
uns_arith_operand
(
op
,
mode
)
rtx
op
;
enum
machine_mode
mode
;
{
return
register_operand
(
op
,
mode
)
||
uns_small_int
(
op
,
mode
);
}
/* Return truth value of statement that OP is a call-clobbered register. */
/* Return truth value of statement that OP is a call-clobbered register. */
int
int
clobbered_register
(
op
,
mode
)
clobbered_register
(
op
,
mode
)
...
...
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