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
eb4e8003
Commit
eb4e8003
authored
Sep 01, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(input_operand): Allow "easy" FP constants.
From-SVN: r5241
parent
87935f60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
gcc/config/rs6000/rs6000.c
+10
-3
No files found.
gcc/config/rs6000/rs6000.c
View file @
eb4e8003
...
...
@@ -405,14 +405,21 @@ input_operand (op, mode)
register
rtx
op
;
enum
machine_mode
mode
;
{
/* Memory is always valid. */
if
(
memory_operand
(
op
,
mode
))
return
1
;
/* For floating-point or multi-word mode, only register or memory
is valid. */
/* For floating-point, easy constants are valid. */
if
(
GET_MODE_CLASS
(
mode
)
==
MODE_FLOAT
&&
CONSTANT_P
(
op
)
&&
easy_fp_constant
(
op
,
mode
))
return
1
;
/* For floating-point or multi-word mode, the only remaining valid type
is a register. */
if
(
GET_MODE_CLASS
(
mode
)
==
MODE_FLOAT
||
GET_MODE_SIZE
(
mode
)
>
UNITS_PER_WORD
)
return
gpc_reg
_operand
(
op
,
mode
);
return
register
_operand
(
op
,
mode
);
/* The only cases left are integral modes one word or smaller (we
do not get called for MODE_CC values). These can be in any
...
...
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