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
dbf65c2f
Commit
dbf65c2f
authored
Jul 16, 2002
by
J"orn Rennecke
Committed by
Joern Rennecke
Jul 16, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* regrename.c (copy_value): Don't record high part copies.
From-SVN: r55493
parent
99b823ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
gcc/ChangeLog
+4
-0
gcc/regrename.c
+20
-0
No files found.
gcc/ChangeLog
View file @
dbf65c2f
Tue Jul 16 19:32:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
* regrename.c (copy_value): Don't record high part copies.
2002-07-16 Steve Ellcey <sje@cup.hp.com>
2002-07-16 Steve Ellcey <sje@cup.hp.com>
* gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
* gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
...
...
gcc/regrename.c
View file @
dbf65c2f
...
@@ -1268,6 +1268,26 @@ copy_value (dest, src, vd)
...
@@ -1268,6 +1268,26 @@ copy_value (dest, src, vd)
if
(
vd
->
e
[
sr
].
mode
==
VOIDmode
)
if
(
vd
->
e
[
sr
].
mode
==
VOIDmode
)
set_value_regno
(
sr
,
vd
->
e
[
dr
].
mode
,
vd
);
set_value_regno
(
sr
,
vd
->
e
[
dr
].
mode
,
vd
);
/* If we are narrowing the the input to a smaller number of hard regs,
and it is in big endian, we are really extracting a high part.
Since we generally associate a low part of a value with the value itself,
we must not do the same for the high part.
Note we can still get low parts for the same mode combination through
a two-step copy involving differently sized hard regs.
Assume hard regs fr* are 32 bits bits each, while r* are 64 bits each:
(set (reg:DI r0) (reg:DI fr0))
(set (reg:SI fr2) (reg:SI r0))
loads the low part of (reg:DI fr0) - i.e. fr1 - into fr2, while:
(set (reg:SI fr2) (reg:SI fr0))
loads the high part of (reg:DI fr0) into fr2.
We can't properly represent the latter case in our tables, so don't
record anything then. */
else
if
(
sn
<
(
unsigned
int
)
HARD_REGNO_NREGS
(
sr
,
vd
->
e
[
sr
].
mode
)
&&
(
GET_MODE_SIZE
(
vd
->
e
[
sr
].
mode
)
>
UNITS_PER_WORD
?
WORDS_BIG_ENDIAN
:
BYTES_BIG_ENDIAN
))
return
;
/* If SRC had been assigned a mode narrower than the copy, we can't
/* If SRC had been assigned a mode narrower than the copy, we can't
link DEST into the chain, because not all of the pieces of the
link DEST into the chain, because not all of the pieces of the
copy came from oldest_regno. */
copy came from oldest_regno. */
...
...
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