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
3879920c
Commit
3879920c
authored
Apr 13, 1997
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(output_move_qimode): Optimize pushing one byte if the source operand
does not use the stack pointer. From-SVN: r13891
parent
5716e645
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
+11
-1
gcc/config/m68k/m68k.c
+11
-1
No files found.
gcc/config/m68k/m68k.c
View file @
3879920c
...
...
@@ -1508,7 +1508,17 @@ output_move_qimode (operands)
gen_rtx
(
PLUS
,
VOIDmode
,
stack_pointer_rtx
,
const1_rtx
));
/* Just pushing a byte puts it in the high byte of the halfword. */
/* We must put it in the low-order, high-numbered byte. */
output_asm_insn
(
"move%.b %1,%-
\n\t
move%.b %@,%2"
,
xoperands
);
if
(
!
reg_mentioned_p
(
stack_pointer_rtx
,
operands
[
1
]))
{
xoperands
[
3
]
=
stack_pointer_rtx
;
#ifndef NO_ADDSUB_Q
output_asm_insn
(
"subq%.l %#2,%3
\n\t
move%.b %1,%2"
,
xoperands
);
#else
output_asm_insn
(
"sub%.l %#2,%3
\n\t
move%.b %1,%2"
,
xoperands
);
#endif
}
else
output_asm_insn
(
"move%.b %1,%-
\n\t
move%.b %@,%2"
,
xoperands
);
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