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
aa988991
Commit
aa988991
authored
Nov 16, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(force_to_mode): Don't do right-shift in a narrower mode.
From-SVN: r6105
parent
02b35b12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
gcc/combine.c
+5
-0
No files found.
gcc/combine.c
View file @
aa988991
...
...
@@ -5608,6 +5608,11 @@ force_to_mode (x, mode, mask, reg)
&&
(
code_to_optab
[(
int
)
code
]
->
handlers
[(
int
)
mode
].
insn_code
!=
CODE_FOR_nothing
))
?
mode
:
GET_MODE
(
x
));
/* It is not valid to do a right-shift in a narrower mode
than the one it came in with. */
if
((
code
==
LSHIFTRT
||
code
==
ASHIFTRT
)
&&
GET_MODE_BITSIZE
(
mode
)
<
GET_MODE_BITSIZE
(
GET_MODE
(
x
)))
op_mode
=
GET_MODE
(
x
);
/* Truncate MASK to fit OP_MODE. */
if
(
op_mode
)
...
...
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