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
401cec23
Commit
401cec23
authored
Jun 08, 1993
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(call_operand, call_operand_address): Accept any address not just REG rtx.
From-SVN: r4651
parent
6ffeae97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
gcc/config/sparc/sparc.c
+4
-3
No files found.
gcc/config/sparc/sparc.c
View file @
401cec23
...
@@ -113,7 +113,8 @@ restore_operand (op, mode)
...
@@ -113,7 +113,8 @@ restore_operand (op, mode)
&&
(
REGNO
(
op
)
<
8
||
(
REGNO
(
op
)
>=
24
&&
REGNO
(
op
)
<
32
)));
&&
(
REGNO
(
op
)
<
8
||
(
REGNO
(
op
)
>=
24
&&
REGNO
(
op
)
<
32
)));
}
}
/* PC-relative call insn on SPARC is independent of `memory_operand'. */
/* Call insn on SPARC can take a PC-relative constant address, or any regular
memory address. */
int
int
call_operand
(
op
,
mode
)
call_operand
(
op
,
mode
)
...
@@ -123,7 +124,7 @@ call_operand (op, mode)
...
@@ -123,7 +124,7 @@ call_operand (op, mode)
if
(
GET_CODE
(
op
)
!=
MEM
)
if
(
GET_CODE
(
op
)
!=
MEM
)
abort
();
abort
();
op
=
XEXP
(
op
,
0
);
op
=
XEXP
(
op
,
0
);
return
(
REG_P
(
op
)
||
CONSTANT_P
(
op
));
return
(
CONSTANT_P
(
op
)
||
memory_address_p
(
Pmode
,
op
));
}
}
int
int
...
@@ -131,7 +132,7 @@ call_operand_address (op, mode)
...
@@ -131,7 +132,7 @@ call_operand_address (op, mode)
rtx
op
;
rtx
op
;
enum
machine_mode
mode
;
enum
machine_mode
mode
;
{
{
return
(
REG_P
(
op
)
||
CONSTANT_P
(
op
));
return
(
CONSTANT_P
(
op
)
||
memory_address_p
(
Pmode
,
op
));
}
}
/* Returns 1 if OP is either a symbol reference or a sum of a symbol
/* Returns 1 if OP is either a symbol reference or a sum of a symbol
...
...
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