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
e2549997
Commit
e2549997
authored
Nov 20, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(init_expr_once): Try indexing mem by fp as well as sp.
From-SVN: r2760
parent
2513f07a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
gcc/expr.c
+15
-0
No files found.
gcc/expr.c
View file @
e2549997
...
...
@@ -139,7 +139,11 @@ init_expr_once ()
{
rtx
insn
,
pat
;
enum
machine_mode
mode
;
/* Try indexing by frame ptr and try by stack ptr.
It is known that on the Convex the stack ptr isn't a valid index.
With luck, one or the other is valid on any machine. */
rtx
mem
=
gen_rtx
(
MEM
,
VOIDmode
,
stack_pointer_rtx
);
rtx
mem1
=
gen_rtx
(
MEM
,
VOIDmode
,
frame_pointer_rtx
);
start_sequence
();
insn
=
emit_insn
(
gen_rtx
(
SET
,
0
,
0
));
...
...
@@ -154,6 +158,7 @@ init_expr_once ()
direct_load
[(
int
)
mode
]
=
direct_store
[(
int
)
mode
]
=
0
;
PUT_MODE
(
mem
,
mode
);
PUT_MODE
(
mem1
,
mode
);
/* See if there is some register that can be used in this mode and
directly loaded or stored from memory. */
...
...
@@ -173,10 +178,20 @@ init_expr_once ()
if
(
recog
(
pat
,
insn
,
&
num_clobbers
)
>=
0
)
direct_load
[(
int
)
mode
]
=
1
;
SET_SRC
(
pat
)
=
mem1
;
SET_DEST
(
pat
)
=
reg
;
if
(
recog
(
pat
,
insn
,
&
num_clobbers
)
>=
0
)
direct_load
[(
int
)
mode
]
=
1
;
SET_SRC
(
pat
)
=
reg
;
SET_DEST
(
pat
)
=
mem
;
if
(
recog
(
pat
,
insn
,
&
num_clobbers
)
>=
0
)
direct_store
[(
int
)
mode
]
=
1
;
SET_SRC
(
pat
)
=
reg
;
SET_DEST
(
pat
)
=
mem1
;
if
(
recog
(
pat
,
insn
,
&
num_clobbers
)
>=
0
)
direct_store
[(
int
)
mode
]
=
1
;
}
movstr_optab
[(
int
)
mode
]
=
CODE_FOR_nothing
;
...
...
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