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
12194c38
Commit
12194c38
authored
Jun 03, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(immed_real_const_1): Check explicitly for NaNs.
From-SVN: r4626
parent
0a830585
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
gcc/varasm.c
+5
-1
No files found.
gcc/varasm.c
View file @
12194c38
...
@@ -1418,7 +1418,11 @@ immed_real_const_1 (d, mode)
...
@@ -1418,7 +1418,11 @@ immed_real_const_1 (d, mode)
/* Avoid REAL_VALUES_EQUAL here in order to distinguish minus zero. */
/* Avoid REAL_VALUES_EQUAL here in order to distinguish minus zero. */
if
(
!
bcmp
(
&
dconst0
,
&
d
,
sizeof
d
))
if
(
!
bcmp
(
&
dconst0
,
&
d
,
sizeof
d
))
return
CONST0_RTX
(
mode
);
return
CONST0_RTX
(
mode
);
else
if
(
REAL_VALUES_EQUAL
(
dconst1
,
d
))
/* Check for NaN first, because some ports (specifically the i386) do not
emit correct ieee-fp code by default, and thus will generate a core
dump here if we pass a NaN to REAL_VALUES_EQUAL and if REAL_VALUES_EQUAL
does a floating point comparison. */
else
if
(
!
REAL_VALUE_ISNAN
(
d
)
&&
REAL_VALUES_EQUAL
(
dconst1
,
d
))
return
CONST1_RTX
(
mode
);
return
CONST1_RTX
(
mode
);
if
(
sizeof
u
==
2
*
sizeof
(
HOST_WIDE_INT
))
if
(
sizeof
u
==
2
*
sizeof
(
HOST_WIDE_INT
))
...
...
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