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
102701ff
Commit
102701ff
authored
May 19, 1997
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(output_move_qimode): Add coldfire support.
From-SVN: r14105
parent
6d808a73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
gcc/config/m68k/m68k.c
+8
-2
No files found.
gcc/config/m68k/m68k.c
View file @
102701ff
...
...
@@ -1497,10 +1497,13 @@ output_move_qimode (operands)
/* This is probably useless, since it loses for pushing a struct
of several bytes a byte at a time. */
/* 68k family always modifies the stack pointer by at least 2, even for
byte pushes. The 5200 (coldfire) does not do this. */
if
(
GET_CODE
(
operands
[
0
])
==
MEM
&&
GET_CODE
(
XEXP
(
operands
[
0
],
0
))
==
PRE_DEC
&&
XEXP
(
XEXP
(
operands
[
0
],
0
),
0
)
==
stack_pointer_rtx
&&
!
ADDRESS_REG_P
(
operands
[
1
]))
&&
!
ADDRESS_REG_P
(
operands
[
1
])
&&
!
TARGET_5200
)
{
xoperands
[
1
]
=
operands
[
1
];
xoperands
[
2
]
...
...
@@ -1551,7 +1554,10 @@ output_move_qimode (operands)
}
if
(
GET_CODE
(
operands
[
1
])
!=
CONST_INT
&&
CONSTANT_P
(
operands
[
1
]))
return
"move%.l %1,%0"
;
if
(
ADDRESS_REG_P
(
operands
[
0
])
||
ADDRESS_REG_P
(
operands
[
1
]))
/* 68k family doesn't support byte moves to from address registers. The
5200 (coldfire) does not have this restriction. */
if
((
ADDRESS_REG_P
(
operands
[
0
])
||
ADDRESS_REG_P
(
operands
[
1
]))
&&
!
TARGET_5200
)
return
"move%.w %1,%0"
;
return
"move%.b %1,%0"
;
}
...
...
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