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
e4a3c2f6
Commit
e4a3c2f6
authored
Mar 23, 2000
by
Geoff Keating
Committed by
Geoffrey Keating
Mar 23, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New test execute/ieee/20000320-1.c.
From-SVN: r32700
parent
17e71da2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
71 additions
and
0 deletions
+71
-0
gcc/testsuite/gcc.c-torture/ChangeLog
+4
-0
gcc/testsuite/gcc.c-torture/execute/ieee/20000320-1.c
+67
-0
No files found.
gcc/testsuite/gcc.c-torture/ChangeLog
View file @
e4a3c2f6
2000-03-22 Geoff Keating <geoffk@cygnus.com>
* execute/ieee/20000320-1.c: New test for denormals.
Fri Mar 10 01:15:19 2000 Hans-Peter Nilsson <hp@bitrange.com>
* execute/divconst-2.c: Rewrite to check for standards-compliant
...
...
gcc/testsuite/gcc.c-torture/execute/ieee/20000320-1.c
0 → 100644
View file @
e4a3c2f6
#include <limits.h>
#if UINT_MAX != 4294967295u || (ULONG_LONG_MAX != 18446744073709551615ull && ULONG_MAX != 18446744073709551615ull)
int
main
(
void
)
{
exit
(
0
);
}
#else
#if ULONG_MAX != 18446744073709551615ull
typedef
unsigned
long
long
ull
;
#else
typedef
unsigned
long
ull
;
#endif
typedef
unsigned
ul
;
union
fl
{
float
f
;
ul
l
;
}
uf
;
union
dl
{
double
d
;
ull
ll
;
}
ud
;
int
failed
=
0
;
void
c
(
ull
d
,
ul
f
)
{
ud
.
ll
=
d
;
uf
.
f
=
(
float
)
ud
.
d
;
if
(
uf
.
l
!=
f
)
{
failed
++
;
}
}
int
main
()
{
if
(
sizeof
(
float
)
!=
sizeof
(
ul
)
||
sizeof
(
double
)
!=
sizeof
(
ull
))
exit
(
0
);
c
(
0x3690000000000000ULL
,
0x00000000U
);
c
(
0x3690000000000001ULL
,
0x00000001U
);
c
(
0x369fffffffffffffULL
,
0x00000001U
);
c
(
0x36A0000000000000ULL
,
0x00000001U
);
c
(
0x36A7ffffffffffffULL
,
0x00000001U
);
c
(
0x36A8000000000000ULL
,
0x00000002U
);
c
(
0x36AfffffffffffffULL
,
0x00000002U
);
c
(
0x36b0000000000000ULL
,
0x00000002U
);
c
(
0x36b0000000000001ULL
,
0x00000002U
);
c
(
0x380fffffdfffffffULL
,
0x007fffffU
);
c
(
0x380fffffe0000000ULL
,
0x00800000U
);
c
(
0x380fffffe0000001ULL
,
0x00800000U
);
c
(
0x380fffffffffffffULL
,
0x00800000U
);
c
(
0x3810000000000000ULL
,
0x00800000U
);
c
(
0x3810000000000001ULL
,
0x00800000U
);
c
(
0x3810000010000000ULL
,
0x00800000U
);
c
(
0x3810000010000001ULL
,
0x00800001U
);
c
(
0x381000002fffffffULL
,
0x00800001U
);
c
(
0x3810000030000000ULL
,
0x00800002U
);
c
(
0x3810000050000000ULL
,
0x00800002U
);
c
(
0x3810000050000001ULL
,
0x00800003U
);
if
(
failed
)
abort
();
else
exit
(
0
);
}
#endif
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