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
a80586cc
Commit
a80586cc
authored
Oct 23, 1996
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(gen_lowpart_common): When converting a floating point value into an
integer, use WORD as (first) word. From-SVN: r13011
parent
059c3d84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
gcc/emit-rtl.c
+5
-3
No files found.
gcc/emit-rtl.c
View file @
a80586cc
...
...
@@ -811,7 +811,7 @@ gen_lowpart_common (mode, x)
&&
GET_CODE
(
x
)
==
CONST_DOUBLE
&&
GET_MODE_CLASS
(
GET_MODE
(
x
))
==
MODE_FLOAT
&&
GET_MODE_BITSIZE
(
mode
)
==
BITS_PER_WORD
)
return
operand_subword
(
x
,
0
,
0
,
GET_MODE
(
x
));
return
operand_subword
(
x
,
word
,
0
,
GET_MODE
(
x
));
/* Similarly, if this is converting a floating-point value into a
two-word integer, we can do this one word at a time and make an
...
...
@@ -827,8 +827,10 @@ gen_lowpart_common (mode, x)
&&
GET_MODE_CLASS
(
GET_MODE
(
x
))
==
MODE_FLOAT
&&
GET_MODE_BITSIZE
(
mode
)
==
2
*
BITS_PER_WORD
)
{
rtx
lowpart
=
operand_subword
(
x
,
WORDS_BIG_ENDIAN
,
0
,
GET_MODE
(
x
));
rtx
highpart
=
operand_subword
(
x
,
!
WORDS_BIG_ENDIAN
,
0
,
GET_MODE
(
x
));
rtx
lowpart
=
operand_subword
(
x
,
word
+
WORDS_BIG_ENDIAN
,
0
,
GET_MODE
(
x
));
rtx
highpart
=
operand_subword
(
x
,
word
+
!
WORDS_BIG_ENDIAN
,
0
,
GET_MODE
(
x
));
if
(
lowpart
&&
GET_CODE
(
lowpart
)
==
CONST_INT
&&
highpart
&&
GET_CODE
(
highpart
)
==
CONST_INT
)
...
...
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