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
0e84b556
Commit
0e84b556
authored
Nov 12, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(pattern_really_clobbers_lr): Setting a subreg of a mem is valid and safe.
From-SVN: r6074
parent
b7d7295b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
gcc/config/arm/arm.c
+7
-1
No files found.
gcc/config/arm/arm.c
View file @
0e84b556
...
@@ -1552,7 +1552,11 @@ output_ascii_pseudo_op (stream, p, len)
...
@@ -1552,7 +1552,11 @@ output_ascii_pseudo_op (stream, p, len)
/* Try to determine whether a pattern really clobbers the link register.
/* Try to determine whether a pattern really clobbers the link register.
This information is useful when peepholing, so that lr need not be pushed
This information is useful when peepholing, so that lr need not be pushed
if we combine a call followed by a return */
if we combine a call followed by a return.
NOTE: This code does not check for side-effect expressions in a SET_SRC:
such a check should not be needed because these only update an existing
value within a register; the register must still be set elsewhere within
the function. */
static
int
static
int
pattern_really_clobbers_lr
(
x
)
pattern_really_clobbers_lr
(
x
)
...
@@ -1570,6 +1574,8 @@ rtx x;
...
@@ -1570,6 +1574,8 @@ rtx x;
case
SUBREG
:
case
SUBREG
:
if
(
GET_CODE
(
XEXP
(
SET_DEST
(
x
),
0
))
==
REG
)
if
(
GET_CODE
(
XEXP
(
SET_DEST
(
x
),
0
))
==
REG
)
return
REGNO
(
XEXP
(
SET_DEST
(
x
),
0
))
==
14
;
return
REGNO
(
XEXP
(
SET_DEST
(
x
),
0
))
==
14
;
if
(
GET_CODE
(
XEXP
(
SET_DEST
(
x
),
0
))
==
MEM
)
return
0
;
abort
();
abort
();
default
:
default
:
return
0
;
return
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