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
2dfd595d
Commit
2dfd595d
authored
Jun 27, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fold_truthop): Commute unextend and convert on l_const and r_const.
From-SVN: r10065
parent
1a16a053
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
gcc/fold-const.c
+2
-2
No files found.
gcc/fold-const.c
View file @
2dfd595d
...
@@ -2866,7 +2866,7 @@ fold_truthop (code, truth_type, lhs, rhs)
...
@@ -2866,7 +2866,7 @@ fold_truthop (code, truth_type, lhs, rhs)
if
(
l_const
)
if
(
l_const
)
{
{
l_const
=
convert
(
type
,
unextend
(
l_const
,
ll_bitsize
,
ll_unsignedp
)
);
l_const
=
unextend
(
convert
(
type
,
l_const
),
ll_bitsize
,
ll_unsignedp
);
l_const
=
const_binop
(
LSHIFT_EXPR
,
l_const
,
size_int
(
xll_bitpos
),
0
);
l_const
=
const_binop
(
LSHIFT_EXPR
,
l_const
,
size_int
(
xll_bitpos
),
0
);
if
(
!
integer_zerop
(
const_binop
(
BIT_AND_EXPR
,
l_const
,
if
(
!
integer_zerop
(
const_binop
(
BIT_AND_EXPR
,
l_const
,
fold
(
build1
(
BIT_NOT_EXPR
,
fold
(
build1
(
BIT_NOT_EXPR
,
...
@@ -2883,7 +2883,7 @@ fold_truthop (code, truth_type, lhs, rhs)
...
@@ -2883,7 +2883,7 @@ fold_truthop (code, truth_type, lhs, rhs)
}
}
if
(
r_const
)
if
(
r_const
)
{
{
r_const
=
convert
(
type
,
unextend
(
r_const
,
rl_bitsize
,
rl_unsignedp
)
);
r_const
=
unextend
(
convert
(
type
,
r_const
),
rl_bitsize
,
rl_unsignedp
);
r_const
=
const_binop
(
LSHIFT_EXPR
,
r_const
,
size_int
(
xrl_bitpos
),
0
);
r_const
=
const_binop
(
LSHIFT_EXPR
,
r_const
,
size_int
(
xrl_bitpos
),
0
);
if
(
!
integer_zerop
(
const_binop
(
BIT_AND_EXPR
,
r_const
,
if
(
!
integer_zerop
(
const_binop
(
BIT_AND_EXPR
,
r_const
,
fold
(
build1
(
BIT_NOT_EXPR
,
fold
(
build1
(
BIT_NOT_EXPR
,
...
...
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