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
a7a813f7
Commit
a7a813f7
authored
Nov 30, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(lwa_operand): New predicate.
From-SVN: r8588
parent
287f13ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
gcc/config/rs6000/rs6000.c
+20
-0
No files found.
gcc/config/rs6000/rs6000.c
View file @
a7a813f7
...
...
@@ -468,6 +468,26 @@ reg_or_mem_operand (op, mode)
return
gpc_reg_operand
(
op
,
mode
)
||
memory_operand
(
op
,
mode
);
}
/* Return 1 if the operand is a general register or memory operand without
pre-inc or pre_dec which produces invalid form of PowerPC lwa
instruction. */
int
lwa_operand
(
op
,
mode
)
register
rtx
op
;
register
enum
machine_mode
mode
;
{
rtx
inner
=
op
;
if
(
reload_completed
&&
GET_CODE
(
inner
)
==
SUBREG
)
inner
=
SUBREG_REG
(
inner
);
return
gpc_reg_operand
(
inner
,
mode
)
||
(
memory_operand
(
inner
,
mode
)
&&
GET_CODE
(
XEXP
(
inner
,
0
))
!=
PRE_INC
&&
GET_CODE
(
XEXP
(
inner
,
0
))
!=
PRE_DEC
);
}
/* Return 1 if the operand, used inside a MEM, is a valid first argument
to CALL. This is a SYMBOL_REF or a pseudo-register, which will be
forced to lr. */
...
...
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