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
6f2f8311
Commit
6f2f8311
authored
Dec 10, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(easy_fp_constant): Use input_operand to see if each word can be
loaded in one insn. From-SVN: r6200
parent
25c341fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
gcc/config/rs6000/rs6000.c
+5
-10
No files found.
gcc/config/rs6000/rs6000.c
View file @
6f2f8311
...
...
@@ -287,13 +287,9 @@ reg_or_cint_operand (op, mode)
return
GET_CODE
(
op
)
==
CONST_INT
||
gpc_reg_operand
(
op
,
mode
);
}
/* Return 1 if the operand is a CONST_DOUBLE and it can be put into a
register with one instruction per word. For SFmode, this means that
the low 16-bits are zero. For DFmode, it means the low 16-bits of
the first word are zero and the high 16 bits of the second word
are zero (usually all bits in the low-order word will be zero).
We only do this if we can safely read CONST_DOUBLE_{LOW,HIGH}. */
/* Return 1 if the operand is a CONST_DOUBLE and it can be put into a register
with one instruction per word. We only do this if we can safely read
CONST_DOUBLE_{LOW,HIGH}. */
int
easy_fp_constant
(
op
,
mode
)
...
...
@@ -310,12 +306,11 @@ easy_fp_constant (op, mode)
high
=
operand_subword
(
op
,
0
,
0
,
mode
);
low
=
operand_subword
(
op
,
1
,
0
,
mode
);
if
(
high
==
0
||
GET_CODE
(
high
)
!=
CONST_INT
||
(
INTVAL
(
high
)
&
0xffff
))
if
(
high
==
0
||
!
input_operand
(
high
,
word_mode
))
return
0
;
return
(
mode
==
SFmode
||
(
low
!=
0
&&
GET_CODE
(
low
)
==
CONST_INT
&&
(
INTVAL
(
low
)
&
0xffff0000
)
==
0
));
||
(
low
!=
0
&&
input_operand
(
low
,
word_mode
)));
}
/* Return 1 if the operand is either a floating-point register, a pseudo
...
...
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