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
83e9c679
Commit
83e9c679
authored
Oct 12, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(gen_lowpart_common): Allow MODE_PARTIAL_INT where MODE_INT is
allowed. From-SVN: r2407
parent
780ed3ae
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
gcc/emit-rtl.c
+9
-4
No files found.
gcc/emit-rtl.c
View file @
83e9c679
...
...
@@ -496,7 +496,8 @@ gen_lowpart_common (mode, x)
/
UNITS_PER_WORD
);
if
((
GET_CODE
(
x
)
==
ZERO_EXTEND
||
GET_CODE
(
x
)
==
SIGN_EXTEND
)
&&
GET_MODE_CLASS
(
mode
)
==
MODE_INT
)
&&
(
GET_MODE_CLASS
(
mode
)
==
MODE_INT
||
GET_MODE_CLASS
(
mode
)
==
MODE_PARTIAL_INT
))
{
/* If we are getting the low-order part of something that has been
sign- or zero-extended, we can either just use the object being
...
...
@@ -544,7 +545,9 @@ gen_lowpart_common (mode, x)
/* If X is a CONST_INT or a CONST_DOUBLE, extract the appropriate bits
from the low-order part of the constant. */
else
if
(
GET_MODE_CLASS
(
mode
)
==
MODE_INT
&&
GET_MODE
(
x
)
==
VOIDmode
else
if
((
GET_MODE_CLASS
(
mode
)
==
MODE_INT
||
GET_MODE_CLASS
(
mode
)
==
MODE_PARTIAL_INT
)
&&
GET_MODE
(
x
)
==
VOIDmode
&&
(
GET_CODE
(
x
)
==
CONST_INT
||
GET_CODE
(
x
)
==
CONST_DOUBLE
))
{
/* If MODE is twice the host word size, X is already the desired
...
...
@@ -632,7 +635,8 @@ gen_lowpart_common (mode, x)
else
if
(((
HOST_FLOAT_FORMAT
==
TARGET_FLOAT_FORMAT
&&
HOST_BITS_PER_WIDE_INT
==
BITS_PER_WORD
)
||
flag_pretend_float
)
&&
GET_MODE_CLASS
(
mode
)
==
MODE_INT
&&
(
GET_MODE_CLASS
(
mode
)
==
MODE_INT
||
GET_MODE_CLASS
(
mode
)
==
MODE_PARTIAL_INT
)
&&
GET_CODE
(
x
)
==
CONST_DOUBLE
&&
GET_MODE_CLASS
(
GET_MODE
(
x
))
==
MODE_FLOAT
&&
GET_MODE_BITSIZE
(
mode
)
==
BITS_PER_WORD
)
...
...
@@ -646,7 +650,8 @@ gen_lowpart_common (mode, x)
else
if
(((
HOST_FLOAT_FORMAT
==
TARGET_FLOAT_FORMAT
&&
HOST_BITS_PER_WIDE_INT
==
BITS_PER_WORD
)
||
flag_pretend_float
)
&&
GET_MODE_CLASS
(
mode
)
==
MODE_INT
&&
(
GET_MODE_CLASS
(
mode
)
==
MODE_INT
&&
GET_MODE_CLASS
(
mode
)
==
MODE_PARTIAL_INT
)
&&
GET_CODE
(
x
)
==
CONST_DOUBLE
&&
GET_MODE_CLASS
(
GET_MODE
(
x
))
==
MODE_FLOAT
&&
GET_MODE_BITSIZE
(
mode
)
==
2
*
BITS_PER_WORD
)
...
...
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