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
9f29ca78
Commit
9f29ca78
authored
Nov 14, 1997
by
J"orn Rennecke
Committed by
Joern Rennecke
Nov 14, 1997
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fold-const.c (fold_truthop): Fix bug in last change.
From-SVN: r16473
parent
41c9120b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
gcc/ChangeLog
+4
-0
gcc/fold-const.c
+2
-2
No files found.
gcc/ChangeLog
View file @
9f29ca78
Thu Nov 13 23:33:50 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
* fold-const.c (fold_truthop): Fix bug in last change.
1997-11-13 Paul Eggert <eggert@twinsun.com>
1997-11-13 Paul Eggert <eggert@twinsun.com>
Fix some confusion with IEEE minus zero.
Fix some confusion with IEEE minus zero.
...
...
gcc/fold-const.c
View file @
9f29ca78
...
@@ -3425,7 +3425,7 @@ fold_truthop (code, truth_type, lhs, rhs)
...
@@ -3425,7 +3425,7 @@ fold_truthop (code, truth_type, lhs, rhs)
{
{
if
(
l_const
&&
integer_zerop
(
l_const
)
&&
integer_pow2p
(
ll_mask
))
if
(
l_const
&&
integer_zerop
(
l_const
)
&&
integer_pow2p
(
ll_mask
))
{
{
if
(
ll_unsignedp
)
if
(
ll_unsignedp
||
tree_log2
(
ll_mask
)
+
1
<
ll_bitsize
)
l_const
=
ll_mask
;
l_const
=
ll_mask
;
else
else
/* Since ll_arg is a single bit bit mask, we can sign extend
/* Since ll_arg is a single bit bit mask, we can sign extend
...
@@ -3443,7 +3443,7 @@ fold_truthop (code, truth_type, lhs, rhs)
...
@@ -3443,7 +3443,7 @@ fold_truthop (code, truth_type, lhs, rhs)
{
{
if
(
r_const
&&
integer_zerop
(
r_const
)
&&
integer_pow2p
(
rl_mask
))
if
(
r_const
&&
integer_zerop
(
r_const
)
&&
integer_pow2p
(
rl_mask
))
{
{
if
(
rl_unsignedp
)
if
(
rl_unsignedp
||
tree_log2
(
rl_mask
)
+
1
<
rl_bitsize
)
r_const
=
rl_mask
;
r_const
=
rl_mask
;
else
else
/* This is analogous to the code for l_const above. */
/* This is analogous to the code for l_const above. */
...
...
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