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
85c0a556
Commit
85c0a556
authored
Oct 11, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(simplify_binary_operation): Test value of SHIFT_COUNT_TRUNCATED if it
is defined. From-SVN: r5731
parent
5541136b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
gcc/cse.c
+8
-4
No files found.
gcc/cse.c
View file @
85c0a556
...
...
@@ -3409,7 +3409,8 @@ simplify_binary_operation (code, mode, op0, op1)
case
ASHIFT
:
case
LSHIFT
:
case
ROTATE
:
case
ROTATERT
:
#ifdef SHIFT_COUNT_TRUNCATED
l2
&=
(
GET_MODE_BITSIZE
(
mode
)
-
1
),
h2
=
0
;
if
(
SHIFT_COUNT_TRUNCATED
)
l2
&=
(
GET_MODE_BITSIZE
(
mode
)
-
1
),
h2
=
0
;
#endif
if
(
h2
!=
0
||
l2
<
0
||
l2
>=
GET_MODE_BITSIZE
(
mode
))
...
...
@@ -3840,7 +3841,8 @@ simplify_binary_operation (code, mode, op0, op1)
return
0
;
#ifdef SHIFT_COUNT_TRUNCATED
arg1
&=
(
BITS_PER_WORD
-
1
);
if
(
SHIFT_COUNT_TRUNCATED
)
arg1
&=
(
BITS_PER_WORD
-
1
);
#endif
if
(
arg1
>=
width
)
...
...
@@ -3855,7 +3857,8 @@ simplify_binary_operation (code, mode, op0, op1)
return
0
;
#ifdef SHIFT_COUNT_TRUNCATED
arg1
&=
(
BITS_PER_WORD
-
1
);
if
(
SHIFT_COUNT_TRUNCATED
)
arg1
&=
(
BITS_PER_WORD
-
1
);
#endif
if
(
arg1
>=
width
)
...
...
@@ -3869,7 +3872,8 @@ simplify_binary_operation (code, mode, op0, op1)
return
0
;
#ifdef SHIFT_COUNT_TRUNCATED
arg1
&=
(
BITS_PER_WORD
-
1
);
if
(
SHIFT_COUNT_TRUNCATED
)
arg1
&=
(
BITS_PER_WORD
-
1
);
#endif
if
(
arg1
>=
width
)
...
...
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