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
3c094e22
Commit
3c094e22
authored
May 23, 2000
by
Richard Henderson
Committed by
Richard Henderson
May 23, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* combine.c (simplify_comparison): Use trunc_int_for_mode.
From-SVN: r34103
parent
81e73afa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
gcc/ChangeLog
+4
-0
gcc/combine.c
+1
-3
No files found.
gcc/ChangeLog
View file @
3c094e22
2000
-
05
-
22
Richard
Henderson
<
rth
@cygnus
.
com
>
*
combine
.
c
(
simplify_comparison
)
:
Use
trunc_int_for_mode
.
2000
-
05
-
22
Richard
Henderson
<
rth
@cygnus
.
com
>
*
stor
-
layout
.
c
(
place_field
)
:
Change
rli
->
size
to
rli
->
offset
.
2000
-
05
-
22
Richard
Henderson
<
rth
@cygnus
.
com
>
gcc/combine.c
View file @
3c094e22
...
...
@@ -10040,9 +10040,7 @@ simplify_comparison (code, pop0, pop1)
/* Get the constant we are comparing against and turn off all bits
not on in our mode. */
const_op
=
INTVAL
(
op1
);
if
(
mode_width
<=
HOST_BITS_PER_WIDE_INT
)
const_op
&=
mask
;
const_op
=
trunc_int_for_mode
(
INTVAL
(
op1
),
mode
);
/* If we are comparing against a constant power of two and the value
being compared can only have that single bit nonzero (e.g., it was
...
...
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