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
302484ff
Commit
302484ff
authored
Aug 08, 1993
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(reg_or_0_operand): Use fp_zero_operand.
(fp_zero_operand): New function. From-SVN: r5113
parent
96f69de5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletions
+16
-1
gcc/config/sparc/sparc.c
+16
-1
No files found.
gcc/config/sparc/sparc.c
View file @
302484ff
...
@@ -96,13 +96,28 @@ reg_or_0_operand (op, mode)
...
@@ -96,13 +96,28 @@ reg_or_0_operand (op, mode)
{
{
if
(
op
==
const0_rtx
||
register_operand
(
op
,
mode
))
if
(
op
==
const0_rtx
||
register_operand
(
op
,
mode
))
return
1
;
return
1
;
if
(
GET_CODE
(
op
)
==
CONST_DOUBLE
if
(
GET_
MODE
(
op
)
==
DImode
&&
GET_
CODE
(
op
)
==
CONST_DOUBLE
&&
CONST_DOUBLE_HIGH
(
op
)
==
0
&&
CONST_DOUBLE_HIGH
(
op
)
==
0
&&
CONST_DOUBLE_LOW
(
op
)
==
0
)
&&
CONST_DOUBLE_LOW
(
op
)
==
0
)
return
1
;
return
1
;
if
(
GET_MODE_CLASS
(
GET_MODE
(
op
))
==
MODE_FLOAT
&&
GET_CODE
(
op
)
==
CONST_DOUBLE
&&
fp_zero_operand
(
op
))
return
1
;
return
0
;
return
0
;
}
}
/* Nonzero if OP is a floating point value with value 0.0. */
int
fp_zero_operand
(
op
)
rtx
op
;
{
REAL_VALUE_TYPE
r
;
REAL_VALUE_FROM_CONST_DOUBLE
(
r
,
op
);
return
REAL_VALUES_EQUAL
(
r
,
dconst0
);
}
/* Nonzero if OP can appear as the dest of a RESTORE insn. */
/* Nonzero if OP can appear as the dest of a RESTORE insn. */
int
int
restore_operand
(
op
,
mode
)
restore_operand
(
op
,
mode
)
...
...
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