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
0cd30143
Commit
0cd30143
authored
Apr 09, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(rs6000_convert_preincs): New function.
From-SVN: r7013
parent
9894a291
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
gcc/config/rs6000/rs6000.c
+28
-0
No files found.
gcc/config/rs6000/rs6000.c
View file @
0cd30143
...
@@ -157,6 +157,34 @@ rs6000_override_options ()
...
@@ -157,6 +157,34 @@ rs6000_override_options ()
}
}
}
}
/* Look for an PRE_INC address in X that are marked as dying in INSN.
Convert the addresses to a PLUS form if one is found. */
void
rs6000_convert_preincs
(
x
,
insn
)
rtx
x
;
rtx
insn
;
{
enum
rtx_code
code
=
GET_CODE
(
x
);
char
*
fmt
;
int
i
,
j
;
if
(
code
==
MEM
&&
GET_CODE
(
XEXP
(
x
,
0
))
==
PRE_INC
&&
find_reg_note
(
insn
,
REG_DEAD
,
XEXP
(
XEXP
(
x
,
0
),
0
)))
XEXP
(
x
,
0
)
=
plus_constant
(
XEXP
(
XEXP
(
x
,
0
),
0
),
GET_MODE_SIZE
(
GET_MODE
(
x
)));
else
for
(
i
=
GET_RTX_LENGTH
(
code
)
-
1
,
fmt
=
GET_RTX_FORMAT
(
code
);
i
>=
0
;
i
--
)
{
if
(
fmt
[
i
]
==
'e'
)
rs6000_convert_preincs
(
XEXP
(
x
,
i
),
insn
);
else
if
(
fmt
[
i
]
==
'E'
)
for
(
j
=
XVECLEN
(
x
,
i
)
-
1
;
j
>=
0
;
j
--
)
rs6000_convert_preincs
(
XVECEXP
(
x
,
i
,
j
),
insn
);
}
}
/* Return non-zero if this function is known to have a null epilogue. */
/* Return non-zero if this function is known to have a null epilogue. */
int
int
...
...
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