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
8e0ac43b
Commit
8e0ac43b
authored
Aug 02, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(simplify_unary_operation): Clean up some mode and size checks with
CONST_DOUBLEs; TRUNCATE should do nothing. From-SVN: r7853
parent
3adde2a5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
gcc/cse.c
+6
-6
No files found.
gcc/cse.c
View file @
8e0ac43b
...
...
@@ -3086,7 +3086,7 @@ simplify_unary_operation (code, mode, op, op_mode)
/* We can do some operations on integer CONST_DOUBLEs. Also allow
for a DImode operation on a CONST_INT. */
else
if
(
GET_MODE
(
op
)
==
VOIDmode
&&
width
=
=
HOST_BITS_PER_INT
*
2
else
if
(
GET_MODE
(
op
)
==
VOIDmode
&&
width
<
=
HOST_BITS_PER_INT
*
2
&&
(
GET_CODE
(
op
)
==
CONST_DOUBLE
||
GET_CODE
(
op
)
==
CONST_INT
))
{
HOST_WIDE_INT
l1
,
h1
,
lv
,
hv
;
...
...
@@ -3123,10 +3123,7 @@ simplify_unary_operation (code, mode, op, op_mode)
break
;
case
TRUNCATE
:
if
(
GET_MODE_BITSIZE
(
mode
)
<=
HOST_BITS_PER_WIDE_INT
)
return
GEN_INT
(
l1
&
GET_MODE_MASK
(
mode
));
else
return
0
;
/* This is just a change-of-mode, so do nothing. */
break
;
case
ZERO_EXTEND
:
...
...
@@ -3220,7 +3217,10 @@ simplify_unary_operation (code, mode, op, op_mode)
set_float_handler
(
NULL_PTR
);
return
x
;
}
else
if
(
GET_CODE
(
op
)
==
CONST_DOUBLE
&&
GET_MODE_CLASS
(
mode
)
==
MODE_INT
else
if
(
GET_CODE
(
op
)
==
CONST_DOUBLE
&&
GET_MODE_CLASS
(
GET_MODE
(
op
))
==
MODE_FLOAT
&&
GET_MODE_CLASS
(
mode
)
==
MODE_INT
&&
width
<=
HOST_BITS_PER_WIDE_INT
&&
width
>
0
)
{
REAL_VALUE_TYPE
d
;
...
...
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