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
3a58400f
Commit
3a58400f
authored
Nov 03, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(output_move_double): Fix up the test for overlap
of source address with operands[0]. From-SVN: r5987
parent
5ac6158d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
gcc/config/m68k/m68k.c
+12
-4
No files found.
gcc/config/m68k/m68k.c
View file @
3a58400f
...
@@ -1077,11 +1077,14 @@ output_move_double (operands)
...
@@ -1077,11 +1077,14 @@ output_move_double (operands)
if
(
optype0
==
REGOP
if
(
optype0
==
REGOP
&&
(
optype1
==
OFFSOP
||
optype1
==
MEMOP
))
&&
(
optype1
==
OFFSOP
||
optype1
==
MEMOP
))
{
{
if
(
reg_overlap_mentioned_p
(
operands
[
0
],
XEXP
(
operands
[
1
],
0
))
rtx
testlow
=
gen_rtx
(
REG
,
SImode
,
REGNO
(
operands
[
0
]));
if
(
reg_overlap_mentioned_p
(
testlow
,
XEXP
(
operands
[
1
],
0
))
&&
reg_overlap_mentioned_p
(
latehalf
[
0
],
XEXP
(
operands
[
1
],
0
)))
&&
reg_overlap_mentioned_p
(
latehalf
[
0
],
XEXP
(
operands
[
1
],
0
)))
{
{
/* If both halves of dest are used in the src memory address,
/* If both halves of dest are used in the src memory address,
compute the address into latehalf of dest. */
compute the address into latehalf of dest.
Note that this can't happen if the dest is two data regs. */
compadr
:
compadr
:
xops
[
0
]
=
latehalf
[
0
];
xops
[
0
]
=
latehalf
[
0
];
xops
[
1
]
=
XEXP
(
operands
[
1
],
0
);
xops
[
1
]
=
XEXP
(
operands
[
1
],
0
);
...
@@ -1102,8 +1105,13 @@ compadr:
...
@@ -1102,8 +1105,13 @@ compadr:
&&
reg_overlap_mentioned_p
(
middlehalf
[
0
],
&&
reg_overlap_mentioned_p
(
middlehalf
[
0
],
XEXP
(
operands
[
1
],
0
)))
XEXP
(
operands
[
1
],
0
)))
{
{
/* Check for two regs used by both source and dest. */
/* Check for two regs used by both source and dest.
if
(
reg_overlap_mentioned_p
(
operands
[
0
],
XEXP
(
operands
[
1
],
0
))
Note that this can't happen if the dest is all data regs.
It can happen if the dest is d6, d7, a0.
But in that case, latehalf is an addr reg, so
the code at compadr does ok. */
if
(
reg_overlap_mentioned_p
(
testlow
,
XEXP
(
operands
[
1
],
0
))
||
reg_overlap_mentioned_p
(
latehalf
[
0
],
XEXP
(
operands
[
1
],
0
)))
||
reg_overlap_mentioned_p
(
latehalf
[
0
],
XEXP
(
operands
[
1
],
0
)))
goto
compadr
;
goto
compadr
;
...
...
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