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
b8076552
Commit
b8076552
authored
Sep 15, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(b_mode_operand): New function.
(print_operand): Added code 'Q'. From-SVN: r10360
parent
760607e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
1 deletions
+32
-1
gcc/config/1750a/1750a.c
+32
-1
No files found.
gcc/config/1750a/1750a.c
View file @
b8076552
...
...
@@ -291,6 +291,32 @@ small_nonneg_const (op, mode)
return
0
;
}
/* predicate for 1750 `B' addressing mode (Base Register with Offset)
memory operand */
int
b_mode_operand
(
op
)
rtx
op
;
{
if
(
GET_CODE
(
op
)
==
MEM
)
{
rtx
inner
=
XEXP
(
op
,
0
);
if
(
GET_CODE
(
inner
)
==
PLUS
)
{
rtx
plus_op0
=
XEXP
(
inner
,
0
);
if
(
GET_CODE
(
plus_op0
)
==
REG
&&
REG_OK_FOR_INDEX_P
(
plus_op0
))
{
rtx
plus_op1
=
XEXP
(
inner
,
1
);
if
(
GET_CODE
(
plus_op1
)
==
CONST_INT
&&
INTVAL
(
plus_op1
)
>=
0
&&
INTVAL
(
plus_op1
)
<=
255
)
return
1
;
}
}
}
return
0
;
}
/* Decide whether to output a conditional jump as a "Jump Conditional"
or as a "Branch Conditional": */
...
...
@@ -384,7 +410,12 @@ print_operand (file, x, kode)
case
LABEL_REF
:
case
CONST
:
case
MEM
:
output_address
(
XEXP
(
x
,
0
));
if
(
kode
==
'Q'
)
fprintf
(
file
,
"r%d,%d"
,
REGNO
(
XEXP
(
XEXP
(
x
,
0
),
0
)),
INTVAL
(
XEXP
(
XEXP
(
x
,
0
),
1
)));
else
output_address
(
XEXP
(
x
,
0
));
break
;
case
CONST_DOUBLE
:
/* {
...
...
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