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
930b4e39
Commit
930b4e39
authored
May 16, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(convert_move): When {zero,sign}_extending, allow a wider intermediate
than to_mode if truncation is a no-op. From-SVN: r7306
parent
9c4dcbc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
gcc/expr.c
+4
-2
No files found.
gcc/expr.c
View file @
930b4e39
...
...
@@ -1043,8 +1043,10 @@ convert_move (to, from, unsignedp)
/* Search for a mode to convert via. */
for
(
intermediate
=
from_mode
;
intermediate
!=
VOIDmode
;
intermediate
=
GET_MODE_WIDER_MODE
(
intermediate
))
if
((
can_extend_p
(
to_mode
,
intermediate
,
unsignedp
)
!=
CODE_FOR_nothing
)
if
(((
can_extend_p
(
to_mode
,
intermediate
,
unsignedp
)
!=
CODE_FOR_nothing
)
||
(
GET_MODE_SIZE
(
to_mode
)
<
GET_MODE_SIZE
(
intermediate
)
&&
TRULY_NOOP_TRUNCATION
(
to_mode
,
intermediate
)))
&&
(
can_extend_p
(
intermediate
,
from_mode
,
unsignedp
)
!=
CODE_FOR_nothing
))
{
...
...
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