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
f20200f4
Commit
f20200f4
authored
Dec 14, 1995
by
Torbjorn Granlund
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(logic_operand): New function.
(i960_print_operand): Handle code `C'. From-SVN: r10726
parent
82eaec4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
gcc/config/i960/i960.c
+19
-3
No files found.
gcc/config/i960/i960.c
View file @
f20200f4
...
...
@@ -215,6 +215,19 @@ arith_operand (op, mode)
return
(
register_operand
(
op
,
mode
)
||
literal
(
op
,
mode
));
}
/* Return truth value of whether OP can be used as an operands in a three
address logic insn, possibly complementing OP, of mode MODE. */
int
logic_operand
(
op
,
mode
)
rtx
op
;
enum
machine_mode
mode
;
{
return
(
register_operand
(
op
,
mode
)
||
(
GET_CODE
(
op
)
==
CONST_INT
&&
INTVAL
(
op
)
>=
-
32
&&
INTVAL
(
op
)
<
32
));
}
/* Return true if OP is a register or a valid floating point literal. */
int
...
...
@@ -1638,10 +1651,13 @@ i960_print_operand (file, x, code)
}
else
if
(
rtxcode
==
CONST_INT
)
{
if
(
INTVAL
(
x
)
>
9999
||
INTVAL
(
x
)
<
-
999
)
fprintf
(
file
,
"0x%x"
,
INTVAL
(
x
));
HOST_WIDE_INT
val
=
INTVAL
(
x
);
if
(
code
==
'C'
)
val
=
~
val
;
if
(
val
>
9999
||
val
<
-
999
)
fprintf
(
file
,
"0x%x"
,
val
);
else
fprintf
(
file
,
"%d"
,
INTVAL
(
x
)
);
fprintf
(
file
,
"%d"
,
val
);
return
;
}
else
if
(
rtxcode
==
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