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
fee2770d
Commit
fee2770d
authored
31 years ago
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(call_insn_operand): New function.
From-SVN: r4393
parent
6b7e6ce4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
gcc/config/i386/i386.c
+20
-0
No files found.
gcc/config/i386/i386.c
View file @
fee2770d
...
...
@@ -514,6 +514,26 @@ symbolic_operand (op, mode)
return
0
;
}
}
/* Test for a valid operand for a call instruction.
Don't allow the arg pointer register or virtual regs
since they may change into reg + const, which the patterns
can't handle yet. */
int
call_insn_operand
(
op
,
mode
)
rtx
op
;
enum
machine_mode
mode
;
{
if
(
GET_CODE
(
op
)
==
MEM
&&
(
CONSTANT_ADDRESS_P
(
XEXP
(
op
,
0
))
||
(
GET_CODE
(
XEXP
(
op
,
0
))
==
REG
&&
XEXP
(
op
,
0
)
!=
arg_pointer_rtx
&&
!
(
REGNO
(
XEXP
(
op
,
0
))
>=
FIRST_PSEUDO_REGISTER
&&
REGNO
(
XEXP
(
op
,
0
))
<=
LAST_VIRTUAL_REGISTER
))))
return
1
;
return
0
;
}
/* Returns 1 if OP contains a symbol reference */
...
...
This diff is collapsed.
Click to expand it.
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