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
fc06d7aa
Commit
fc06d7aa
authored
Jan 31, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(simplify_and_const_int): Never consider bits outside of MODE.
From-SVN: r3398
parent
89352663
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
gcc/combine.c
+5
-2
No files found.
gcc/combine.c
View file @
fc06d7aa
...
...
@@ -5899,8 +5899,11 @@ simplify_and_const_int (x, mode, varop, constop)
if
(
GET_CODE
(
varop
)
==
CONST_INT
)
return
GEN_INT
(
constop
&
INTVAL
(
varop
));
/* See what bits may be nonzero in VAROP. */
nonzero
=
nonzero_bits
(
varop
,
mode
);
/* See what bits may be nonzero in VAROP. Unlike the general case of
a call to nonzero_bits, here we don't care about bits outside
MODE. */
nonzero
=
nonzero_bits
(
varop
,
mode
)
&
GET_MODE_MASK
(
mode
);
/* Turn off all bits in the constant that are known to already be zero.
Thus, if the AND isn't needed at all, we will have CONSTOP == NONZERO_BITS
...
...
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