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
23b8a89f
Commit
23b8a89f
authored
Apr 28, 1994
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(arith_double_operand): Modify to accept all possible constants.
From-SVN: r7172
parent
39211cd5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
gcc/config/sparc/sparc.c
+5
-11
No files found.
gcc/config/sparc/sparc.c
View file @
23b8a89f
...
...
@@ -387,9 +387,9 @@ arith_operand (op, mode)
||
(
GET_CODE
(
op
)
==
CONST_INT
&&
SMALL_INT
(
op
)));
}
/* Return true if OP is a register,
or is a CONST_INT or CONST_DOUBLE tha
t
can fit in a 13 bit immediate field. This is an acceptable DImode operand
for most 3 address instructions
. */
/* Return true if OP is a register,
is a CONST_INT that fits in a 13 bi
t
immediate field, or is a CONST_DOUBLE whose both parts fit in a 13 bit
immediate field
. */
int
arith_double_operand
(
op
,
mode
)
...
...
@@ -397,16 +397,10 @@ arith_double_operand (op, mode)
enum
machine_mode
mode
;
{
return
(
register_operand
(
op
,
mode
)
||
(
GET_CODE
(
op
)
==
CONST_INT
&&
SMALL_INT
(
op
))
||
(
GET_CODE
(
op
)
==
CONST_DOUBLE
&&
(
GET_MODE
(
op
)
==
mode
||
GET_MODE
(
op
)
==
VOIDmode
)
&&
(
unsigned
)
(
CONST_DOUBLE_LOW
(
op
)
+
0x1000
)
<
0x2000
&&
((
CONST_DOUBLE_HIGH
(
op
)
==
-
1
&&
(
CONST_DOUBLE_LOW
(
op
)
&
0x1000
)
==
0x1000
)
||
(
CONST_DOUBLE_HIGH
(
op
)
==
0
&&
(
CONST_DOUBLE_LOW
(
op
)
&
0x1000
)
==
0
)))
||
(
GET_CODE
(
op
)
==
CONST_INT
&&
(
GET_MODE
(
op
)
==
mode
||
GET_MODE
(
op
)
==
VOIDmode
)
&&
(
unsigned
)
(
INTVAL
(
op
)
+
0x1000
)
<
0x2000
));
&&
(
unsigned
)
(
CONST_DOUBLE_HIGH
(
op
)
+
0x1000
)
<
0x2000
));
}
/* Return truth value of whether OP is a integer which fits the
...
...
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