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
1a7a2c0f
Commit
1a7a2c0f
authored
Jan 10, 2004
by
Geoffrey Keating
Committed by
Geoffrey Keating
Jan 10, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.dg/rs6000-ldouble-1.c: New.
From-SVN: r75631
parent
b39f1868
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/rs6000-ldouble-1.c
+23
-0
No files found.
gcc/testsuite/ChangeLog
View file @
1a7a2c0f
2004-01-09 Geoffrey Keating <geoffk@apple.com>
* gcc.dg/rs6000-ldouble-1.c: New.
2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
DR 337
...
...
gcc/testsuite/gcc.dg/rs6000-ldouble-1.c
0 → 100644
View file @
1a7a2c0f
/* { dg-do run { target powerpc*-*-darwin* powerpc*-*-aix* powerpc64-*-linux rs6000-*-* } } */
/* { dg-options "-mlong-double-128" } */
/* Check that long double values are rounded correctly when being converted
to 32-bit integers. All these values are of the form +/- 2 +/- 2^-60. */
int
main
(
void
)
{
long
double
l1
=
1
.
9999999999999999991326382620115964527941L
;
long
double
l2
=
2
.
000000000000000000
8673617379884035472059L
;
long
double
l3
=
-
2
.
000000000000000000
8673617379884035472059L
;
long
double
l4
=
-
1
.
9999999999999999991326382620115964527941L
;
if
((
int
)
l1
!=
1
)
abort
();
if
((
int
)
l2
!=
2
)
abort
();
if
((
int
)
l3
!=
-
2
)
abort
();
if
((
int
)
l4
!=
-
1
)
abort
();
exit
(
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