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
4d5fc916
Commit
4d5fc916
authored
Oct 23, 2006
by
Kaveh R. Ghazi
Committed by
Kaveh Ghazi
Oct 23, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builtin-sin-mpfr-1.c: New test.
* gcc.dg/torture/builtin-sin-mpfr-1.c: New test. From-SVN: r117985
parent
1f3f1f68
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/torture/builtin-sin-mpfr-1.c
+30
-0
No files found.
gcc/testsuite/ChangeLog
View file @
4d5fc916
2006
-
10
-
23
Kaveh
R
.
Ghazi
<
ghazi
@caip
.
rutgers
.
edu
>
*
gcc
.
dg
/
torture
/
builtin
-
sin
-
mpfr
-
1
.
c
:
New
test
.
2006
-
10
-
23
Jakub
Jelinek
<
jakub
@redhat
.
com
>
2006
-
10
-
23
Jakub
Jelinek
<
jakub
@redhat
.
com
>
*
gcc
.
dg
/
builtin
-
strncat
-
chk
-
1
.
c
:
New
test
.
*
gcc
.
dg
/
builtin
-
strncat
-
chk
-
1
.
c
:
New
test
.
gcc/testsuite/gcc.dg/torture/builtin-sin-mpfr-1.c
0 → 100644
View file @
4d5fc916
/* Version 2.2.0 of MPFR had bugs in sin rounding. This test checks
to see if that buggy version was installed. The problem is fixed
in the MPFR cumulative patch http://www.mpfr.org/mpfr-current and
presumably later MPFR versions.
Origin: Kaveh R. Ghazi 10/23/2006. */
/* { dg-do link } */
extern
void
link_error
(
int
,
double
,
double
);
#define TESTIT(ARG,RES) do { \
if (sizeof (double) == 8 && __builtin_sin(ARG) != RES) \
link_error(__LINE__, __builtin_sin(ARG), RES); \
} while (0);
int
main
()
{
TESTIT
(
-
0x1
.
c0016155c4da3p
-
1
,
-
0x1
.
88
fc58bcf030dp
-
1
);
TESTIT
(
0x1
.
30654
d85c2756p
-
2
,
0x1
.
2
beeb9de27a79p
-
2
);
TESTIT
(
0x1
.
fe68ccaa8e201p
+
2
,
0x1
.
fc3f0c54e97a7p
-
1
);
/* This case should always pass. */
TESTIT
(
0
.
0
,
0
.
0
);
return
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