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
2bb3413d
Commit
2bb3413d
authored
Mar 20, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(movqi): In address reg case, if d0
appears in the address, use d1 instead as intermediate reg. From-SVN: r3797
parent
14a8d078
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
gcc/config/m68k/m68k.md
+14
-0
No files found.
gcc/config/m68k/m68k.md
View file @
2bb3413d
...
...
@@ -931,10 +931,24 @@
/
* Moving a byte into an address register is not possible. *
/
/
* Use d0 as an intermediate, but don't clobber its contents. *
/
if (ADDRESS_REG_P (operands
[
0
]
) && GET_CODE (operands
[
1
]
) == MEM)
{
/
* If the address of operand 1 uses d0, choose d1 as intermediate. *
/
if (refers_to_regno_p (0, 1, operands
[
1
]
, NULL_RTX))
return
\"
exg %/d1,%0
\;
move%.b %1,%/d1
\;
exg %/d1,%0
\"
;
/
*
Otherwise d0 is usable.
(An effective address on the 68k can't use two d-regs.)
*
/
else
return
\"
exg %/d0,%0
\;
move%.b %1,%/d0
\;
exg %/d0,%0
\"
;
}
/
* Likewise for moving from an address reg. *
/
if (ADDRESS_REG_P (operands
[
1
]
) && GET_CODE (operands
[
0
]
) == MEM)
{
if (refers_to_regno_p (0, 1, operands
[
0
]
, NULL_RTX))
return
\"
exg %/d1,%1
\;
move%.b %/d1,%0
\;
exg %/d1,%1
\"
;
else
return
\"
exg %/d0,%1
\;
move%.b %/d0,%0
\;
exg %/d0,%1
\"
;
}
/
*
clr and st insns on 68000 read before writing.
This isn't so on the 68010, but we have no alternative for it.
*
/
...
...
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