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
9c0ae98b
Commit
9c0ae98b
authored
Jul 08, 1992
by
Charles Hannum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
entered into RCS
From-SVN: r1522
parent
d9bacbad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
gcc/fold-const.c
+7
-7
No files found.
gcc/fold-const.c
View file @
9c0ae98b
...
...
@@ -2012,8 +2012,8 @@ distribute_bit_expr (code, type, arg0, arg1)
if
(
TREE_CODE
(
arg0
)
!=
TREE_CODE
(
arg1
)
||
TREE_CODE
(
arg0
)
==
code
||
(
TREE_CODE
(
arg0
)
!=
BIT
_AND_EXPR
&&
TREE_CODE
(
arg0
)
!=
BIT_I
OR_EXPR
))
||
(
TREE_CODE
(
arg0
)
!=
TRUTH
_AND_EXPR
&&
TREE_CODE
(
arg0
)
!=
TRUTH_
OR_EXPR
))
return
0
;
if
(
operand_equal_p
(
TREE_OPERAND
(
arg0
,
0
),
TREE_OPERAND
(
arg1
,
0
),
0
))
...
...
@@ -2364,8 +2364,8 @@ simple_operand_p (exp)
For example, "i >= 2 && i =< 9" can be done as "(unsigned) (i - 2) <= 7".
JCODE is the logical combination of the two terms. It is
BIT
_AND_EXPR
(representing TRUTH_ANDIF_EXPR and TRUTH_AND_EXPR) or
BIT_I
OR_EXPR
JCODE is the logical combination of the two terms. It is
TRUTH
_AND_EXPR
(representing TRUTH_ANDIF_EXPR and TRUTH_AND_EXPR) or
TRUTH_
OR_EXPR
(representing TRUTH_ORIF_EXPR and TRUTH_OR_EXPR). TYPE is the type of
the result.
...
...
@@ -2385,7 +2385,7 @@ range_test (jcode, type, lo_code, hi_code, var, lo_cst, hi_cst)
/* See if this is a range test and normalize the constant terms. */
if
(
jcode
==
BIT
_AND_EXPR
)
if
(
jcode
==
TRUTH
_AND_EXPR
)
{
switch
(
lo_code
)
{
...
...
@@ -2553,7 +2553,7 @@ fold_truthop (code, truth_type, lhs, rhs)
return
0
;
code
=
((
code
==
TRUTH_AND_EXPR
||
code
==
TRUTH_ANDIF_EXPR
)
?
BIT_AND_EXPR
:
BIT_I
OR_EXPR
);
?
TRUTH_AND_EXPR
:
TRUTH_
OR_EXPR
);
ll_arg
=
TREE_OPERAND
(
lhs
,
0
);
lr_arg
=
TREE_OPERAND
(
lhs
,
1
);
...
...
@@ -2648,7 +2648,7 @@ fold_truthop (code, truth_type, lhs, rhs)
fail. However, we can convert a one-bit comparison against zero into
the opposite comparison against that bit being set in the field. */
wanted_code
=
(
code
==
BIT
_AND_EXPR
?
EQ_EXPR
:
NE_EXPR
);
wanted_code
=
(
code
==
TRUTH
_AND_EXPR
?
EQ_EXPR
:
NE_EXPR
);
if
(
lcode
!=
wanted_code
)
{
if
(
l_const
&&
integer_zerop
(
l_const
)
&&
integer_pow2p
(
ll_mask
))
...
...
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