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
3dc4195c
Commit
3dc4195c
authored
Jul 31, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(convert_move): Put FROM into a register if it is a SUBREG.
From-SVN: r1732
parent
58c8c593
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
gcc/expr.c
+6
-0
No files found.
gcc/expr.c
View file @
3dc4195c
...
@@ -705,6 +705,12 @@ convert_move (to, from, unsignedp)
...
@@ -705,6 +705,12 @@ convert_move (to, from, unsignedp)
if
((
code
=
can_extend_p
(
to_mode
,
from_mode
,
unsignedp
))
if
((
code
=
can_extend_p
(
to_mode
,
from_mode
,
unsignedp
))
!=
CODE_FOR_nothing
)
!=
CODE_FOR_nothing
)
{
{
/* If FROM is a SUBREG, put it into a register. Do this
so that we always generate the same set of insns for
better cse'ing; if an intermediate assignment occurred,
we won't be doing the operation directly on the SUBREG. */
if
(
optimize
>
0
&&
GET_CODE
(
from
)
==
SUBREG
)
from
=
force_reg
(
from_mode
,
from
);
emit_unop_insn
(
code
,
to
,
from
,
equiv_code
);
emit_unop_insn
(
code
,
to
,
from
,
equiv_code
);
return
;
return
;
}
}
...
...
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