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
82a5e898
Commit
82a5e898
authored
Jul 06, 1992
by
Charles Hannum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r1477
parent
c166a311
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
gcc/cse.c
+9
-7
No files found.
gcc/cse.c
View file @
82a5e898
...
...
@@ -2895,7 +2895,7 @@ simplify_unary_operation (code, mode, op, op_mode)
case
ZERO_EXTEND
:
if
(
op_mode
==
VOIDmode
)
op_mode
=
mode
;
if
(
GET_MODE_BITSIZE
(
op_mode
)
==
HOST_BITS_PER_INT
)
if
(
GET_MODE_BITSIZE
(
op_mode
)
==
HOST_BITS_PER_
WIDE_
INT
)
{
/* If we were really extending the mode,
we would have to distinguish between zero-extension
...
...
@@ -2904,8 +2904,8 @@ simplify_unary_operation (code, mode, op, op_mode)
abort
();
val
=
arg0
;
}
else
if
(
GET_MODE_BITSIZE
(
op_mode
)
<
HOST_BITS_PER_INT
)
val
=
arg0
&
~
((
-
1
)
<<
GET_MODE_BITSIZE
(
op_mode
));
else
if
(
GET_MODE_BITSIZE
(
op_mode
)
<
HOST_BITS_PER_
WIDE_
INT
)
val
=
arg0
&
~
((
HOST_WIDE_INT
)
(
-
1
)
<<
GET_MODE_BITSIZE
(
op_mode
));
else
return
0
;
break
;
...
...
@@ -2913,7 +2913,7 @@ simplify_unary_operation (code, mode, op, op_mode)
case
SIGN_EXTEND
:
if
(
op_mode
==
VOIDmode
)
op_mode
=
mode
;
if
(
GET_MODE_BITSIZE
(
op_mode
)
==
HOST_BITS_PER_INT
)
if
(
GET_MODE_BITSIZE
(
op_mode
)
==
HOST_BITS_PER_
WIDE_
INT
)
{
/* If we were really extending the mode,
we would have to distinguish between zero-extension
...
...
@@ -2924,9 +2924,11 @@ simplify_unary_operation (code, mode, op, op_mode)
}
else
if
(
GET_MODE_BITSIZE
(
op_mode
)
<
HOST_BITS_PER_INT
)
{
val
=
arg0
&
~
((
-
1
)
<<
GET_MODE_BITSIZE
(
op_mode
));
if
(
val
&
(
1
<<
(
GET_MODE_BITSIZE
(
op_mode
)
-
1
)))
val
-=
1
<<
GET_MODE_BITSIZE
(
op_mode
);
val
=
arg0
&
~
((
HOST_WIDE_INT
)
(
-
1
)
<<
GET_MODE_BITSIZE
(
op_mode
));
if
(
val
&
((
HOST_WIDE_INT
)
1
<<
(
GET_MODE_BITSIZE
(
op_mode
)
-
1
)))
val
-=
(
HOST_WIDE_INT
)
1
<<
GET_MODE_BITSIZE
(
op_mode
);
}
else
return
0
;
...
...
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