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
81fd0956
Commit
81fd0956
authored
Oct 25, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(output_move_double): Divert first word via the stack
if it's a register used in the input operand. From-SVN: r2602
parent
555b950b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
gcc/config/i386/i386.c
+17
-0
No files found.
gcc/config/i386/i386.c
View file @
81fd0956
...
...
@@ -42,6 +42,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define AT_BP(mode) (gen_rtx (MEM, (mode), frame_pointer_rtx))
extern
rtx
gen_push_operand
();
extern
FILE
*
asm_out_file
;
extern
char
*
strcat
();
...
...
@@ -243,6 +244,7 @@ output_move_double (operands)
enum
{
REGOP
,
OFFSOP
,
MEMOP
,
PUSHOP
,
POPOP
,
CNSTOP
,
RNDOP
}
optype0
,
optype1
;
rtx
latehalf
[
2
];
rtx
addreg0
=
0
,
addreg1
=
0
;
rtx
pop_after
=
0
;
/* First classify both operands. */
...
...
@@ -352,6 +354,16 @@ output_move_double (operands)
&&
reg_overlap_mentioned_p
(
stack_pointer_rtx
,
operands
[
1
]))
operands
[
1
]
=
latehalf
[
1
];
/* For (set (reg:DI N) (mem:DI ... (reg:SI N) ...)),
push the first word on the stack, and pop it off afterward. */
if
(
optype0
==
REGOP
&&
refers_to_regno_p
(
REGNO
(
operands
[
0
]),
REGNO
(
operands
[
0
])
+
1
,
operands
[
1
],
0
))
{
pop_after
=
operands
[
0
];
operands
[
0
]
=
gen_rtx
(
MEM
,
SImode
,
gen_push_operand
());
}
/* If one or both operands autodecrementing,
do the two words, high-numbered first. */
...
...
@@ -402,6 +414,11 @@ output_move_double (operands)
if
(
addreg1
)
asm_add
(
-
4
,
addreg1
);
/* If we diverted a word to the stack, pop it now
to the proper register. */
if
(
pop_after
!=
0
)
output_asm_insn
(
"pop%L0 %0"
,
&
pop_after
);
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