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
4c002f29
Commit
4c002f29
authored
Oct 10, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(force_to_mode, case ASHIFTRT): Verify that result of making a
LSHIFTRT remains a shift. From-SVN: r5715
parent
4da73fa0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
gcc/combine.c
+4
-2
No files found.
gcc/combine.c
View file @
4c002f29
...
...
@@ -5892,9 +5892,11 @@ force_to_mode (x, mode, mask, reg)
x
=
gen_binary
(
LSHIFTRT
,
GET_MODE
(
x
),
XEXP
(
x
,
0
),
XEXP
(
x
,
1
));
/* If this is a sign-extension operation that just affects bits
we don't care about, remove it. */
we don't care about, remove it. Be sure the call above returned
something that is still a shift. */
if
(
GET_CODE
(
XEXP
(
x
,
1
))
==
CONST_INT
if
((
GET_CODE
(
x
)
==
LSHIFTRT
||
GET_CODE
(
x
)
==
ASHIFTRT
)
&&
GET_CODE
(
XEXP
(
x
,
1
))
==
CONST_INT
&&
INTVAL
(
XEXP
(
x
,
1
))
>=
0
&&
(
INTVAL
(
XEXP
(
x
,
1
))
<=
GET_MODE_BITSIZE
(
GET_MODE
(
x
))
-
(
floor_log2
(
mask
)
+
1
))
...
...
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