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
10f14441
Commit
10f14441
authored
Jan 12, 1997
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(complemented_arith_operand): New function.
(print_operand): Handle `e' for CONST_INT. From-SVN: r13486
parent
77a8368e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
gcc/config/mips/mips.c
+18
-0
No files found.
gcc/config/mips/mips.c
View file @
10f14441
...
@@ -386,6 +386,21 @@ uns_arith_operand (op, mode)
...
@@ -386,6 +386,21 @@ uns_arith_operand (op, mode)
}
}
/* Return truth value of whether OP can be used as an operands
/* Return truth value of whether OP can be used as an operands
where a register or complemented 16 bit unsigned integer is needed. */
int
complemented_arith_operand
(
op
,
mode
)
rtx
op
;
enum
machine_mode
mode
;
{
if
(
GET_CODE
(
op
)
==
CONST_INT
&&
(
~
(
unsigned
HOST_WIDE_INT
)
INTVAL
(
op
)
<
0x10000
))
return
TRUE
;
return
register_operand
(
op
,
mode
);
}
/* Return truth value of whether OP can be used as an operands
where a 16 bit integer is needed */
where a 16 bit integer is needed */
int
int
...
@@ -4130,6 +4145,9 @@ print_operand (file, op, letter)
...
@@ -4130,6 +4145,9 @@ print_operand (file, op, letter)
else
if
((
letter
==
'd'
)
&&
(
GET_CODE
(
op
)
==
CONST_INT
))
else
if
((
letter
==
'd'
)
&&
(
GET_CODE
(
op
)
==
CONST_INT
))
fprintf
(
file
,
"%d"
,
(
INTVAL
(
op
)));
fprintf
(
file
,
"%d"
,
(
INTVAL
(
op
)));
else
if
((
letter
==
'e'
)
&&
(
GET_CODE
(
op
)
==
CONST_INT
))
fprintf
(
file
,
"%d"
,
~
(
INTVAL
(
op
)));
else
if
(
letter
==
'z'
else
if
(
letter
==
'z'
&&
(
GET_CODE
(
op
)
==
CONST_INT
)
&&
(
GET_CODE
(
op
)
==
CONST_INT
)
&&
INTVAL
(
op
)
==
0
)
&&
INTVAL
(
op
)
==
0
)
...
...
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