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
bdaae9a0
Commit
bdaae9a0
authored
May 13, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(simplify_shift_count, case LSHIFTRT): Don't merge shifts of different
modes if first is any right shift. From-SVN: r9674
parent
e98b8544
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
gcc/combine.c
+5
-3
No files found.
gcc/combine.c
View file @
bdaae9a0
...
...
@@ -7898,7 +7898,7 @@ simplify_shift_const (x, code, result_mode, varop, count)
ASHIFTRT.
If the mode of this shift is not the mode of the outer shift,
we can't do this if either shift is
ASHIFTRT
or ROTATE.
we can't do this if either shift is
a right shift
or ROTATE.
Finally, we can't do any of these if the mode is too wide
unless the codes are the same.
...
...
@@ -7909,7 +7909,8 @@ simplify_shift_const (x, code, result_mode, varop, count)
if
(
code
==
first_code
)
{
if
(
GET_MODE
(
varop
)
!=
result_mode
&&
(
code
==
ASHIFTRT
||
code
==
ROTATE
))
&&
(
code
==
ASHIFTRT
||
code
==
LSHIFTRT
||
code
==
ROTATE
))
break
;
count
+=
first_count
;
...
...
@@ -7921,7 +7922,8 @@ simplify_shift_const (x, code, result_mode, varop, count)
||
(
code
==
ROTATE
&&
first_code
==
ASHIFTRT
)
||
GET_MODE_BITSIZE
(
mode
)
>
HOST_BITS_PER_WIDE_INT
||
(
GET_MODE
(
varop
)
!=
result_mode
&&
(
first_code
==
ASHIFTRT
||
first_code
==
ROTATE
&&
(
first_code
==
ASHIFTRT
||
first_code
==
LSHIFTRT
||
first_code
==
ROTATE
||
code
==
ROTATE
)))
break
;
...
...
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