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
4c05b187
Commit
4c05b187
authored
May 06, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(eliminate_regs, case {PRE,POST}_{INC,DEC}): Account for PUSH_ROUNDING.
From-SVN: r4375
parent
7518f9cc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
gcc/reload1.c
+10
-3
No files found.
gcc/reload1.c
View file @
4c05b187
/* Reload pseudo regs into hard regs for insns that require hard regs.
Copyright (C) 1987, 1988, 1989, 1992 Free Software Foundation, Inc.
Copyright (C) 1987, 1988, 1989, 1992
, 1993
Free Software Foundation, Inc.
This file is part of GNU CC.
...
...
@@ -2734,10 +2734,17 @@ eliminate_regs (x, mem_mode, insn)
for
(
ep
=
reg_eliminate
;
ep
<
&
reg_eliminate
[
NUM_ELIMINABLE_REGS
];
ep
++
)
if
(
ep
->
to_rtx
==
XEXP
(
x
,
0
))
{
int
size
=
GET_MODE_SIZE
(
mem_mode
);
/* If more bytes than MEM_MODE are pushed, account for them. */
#ifdef PUSH_ROUNDING
if
(
ep
->
to_rtx
==
stack_pointer_rtx
)
size
=
PUSH_ROUNDING
(
size
);
#endif
if
(
code
==
PRE_DEC
||
code
==
POST_DEC
)
ep
->
offset
+=
GET_MODE_SIZE
(
mem_mode
)
;
ep
->
offset
+=
size
;
else
ep
->
offset
-=
GET_MODE_SIZE
(
mem_mode
)
;
ep
->
offset
-=
size
;
}
/* Fall through to generic unary operation case. */
...
...
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