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
7ce787fe
Commit
7ce787fe
authored
Sep 23, 1999
by
Nick Clifton
Committed by
Nick Clifton
Sep 23, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use unsigned shift instead of signed shift.
From-SVN: r29621
parent
f8540d76
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
gcc/ChangeLog
+5
-0
gcc/combine.c
+6
-2
No files found.
gcc/ChangeLog
View file @
7ce787fe
Thu
Sep
23
15
:
54
:
12
1999
Nick
Clifton
<
nickc
@cygnus
.
com
>
*
combine
.
c
(
simplify_comparison
)
:
Use
an
unsigned
shift
to
adjust
the
constant
.
Thu
Sep
23
08
:
46
:
21
1999
Guy
Harris
<
guy
@netapp
.
com
>
*
gcc
.
1
:
Fix
a
formatting
error
.
...
...
gcc/combine.c
View file @
7ce787fe
...
...
@@ -10362,8 +10362,12 @@ simplify_comparison (code, pop0, pop1)
&
~
(
mask
>>
(
INTVAL
(
XEXP
(
op0
,
1
))
+
!
equality_comparison_p
)))
==
0
)
{
const_op
>>=
INTVAL
(
XEXP
(
op0
,
1
));
op1
=
GEN_INT
(
const_op
);
/* We must perform a logical shift, not an arithmetic one,
as we want the top N bits of C to be zero. */
unsigned
HOST_WIDE_INT
temp
=
const_op
;
temp
>>=
INTVAL
(
XEXP
(
op0
,
1
));
op1
=
GEN_INT
(
temp
);
op0
=
XEXP
(
op0
,
0
);
continue
;
}
...
...
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