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
70d53c3b
Commit
70d53c3b
authored
Nov 29, 2006
by
Janis Johnson
Committed by
Janis Johnson
Nov 29, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.dg/dfp/convert-bfp.c: Skip long double conversions.
From-SVN: r119330
parent
240e6b6b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/dfp/convert-bfp.c
+11
-0
No files found.
gcc/testsuite/ChangeLog
View file @
70d53c3b
2006
-
11
-
29
Janis
Johnson
<
janis187
@us
.
ibm
.
com
>
*
gcc
.
dg
/
dfp
/
convert
-
bfp
.
c
:
Skip
long
double
conversions
.
2006
-
11
-
29
Lee
Millward
<
lee
.
millward
@codesourcery
.
com
>
2006
-
11
-
29
Lee
Millward
<
lee
.
millward
@codesourcery
.
com
>
PR
c
++/
29022
PR
c
++/
29022
gcc/testsuite/gcc.dg/dfp/convert-bfp.c
View file @
70d53c3b
...
@@ -4,12 +4,17 @@
...
@@ -4,12 +4,17 @@
decimal floating types and generic floating types.
decimal floating types and generic floating types.
C99 6.3.1.5(4) Conversions, arithmetic operands, real floating types. */
C99 6.3.1.5(4) Conversions, arithmetic operands, real floating types. */
/* Long double isn't supported yet at runtime, so disable those checks. */
#define SKIP_LONG_DOUBLE
volatile
_Decimal32
d32
;
volatile
_Decimal32
d32
;
volatile
_Decimal64
d64
;
volatile
_Decimal64
d64
;
volatile
_Decimal128
d128
;
volatile
_Decimal128
d128
;
volatile
float
sf
;
volatile
float
sf
;
volatile
double
df
;
volatile
double
df
;
#ifndef SKIP_LONG_DOUBLE
volatile
long
double
tf
;
volatile
long
double
tf
;
#endif
extern
void
abort
(
void
);
extern
void
abort
(
void
);
...
@@ -28,9 +33,11 @@ main ()
...
@@ -28,9 +33,11 @@ main ()
if
(
df
!=
2
.
0
)
if
(
df
!=
2
.
0
)
abort
();
abort
();
#ifndef SKIP_LONG_DOUBLE
tf
=
d32
;
tf
=
d32
;
if
(
tf
!=
2
.
0l
)
if
(
tf
!=
2
.
0l
)
abort
();
abort
();
#endif
/* Conversions from _Decimal64. */
/* Conversions from _Decimal64. */
d64
=
-
7
.
0
dd
;
d64
=
-
7
.
0
dd
;
...
@@ -42,9 +49,11 @@ main ()
...
@@ -42,9 +49,11 @@ main ()
if
(
df
!=
-
7
.
0
)
if
(
df
!=
-
7
.
0
)
abort
();
abort
();
#ifndef SKIP_LONG_DOUBLE
tf
=
d64
;
tf
=
d64
;
if
(
tf
!=
-
7
.
0l
)
if
(
tf
!=
-
7
.
0l
)
abort
();
abort
();
#endif
/* Conversions from _Decimal128. */
/* Conversions from _Decimal128. */
d128
=
30
.
0
dl
;
d128
=
30
.
0
dl
;
...
@@ -88,6 +97,7 @@ main ()
...
@@ -88,6 +97,7 @@ main ()
if
(
d128
!=
30
.
0
dl
)
if
(
d128
!=
30
.
0
dl
)
abort
();
abort
();
#ifndef SKIP_LONG_DOUBLE
tf
=
-
22
.
0l
;
tf
=
-
22
.
0l
;
d32
=
tf
;
d32
=
tf
;
if
(
d32
!=
-
22
.
0
df
)
if
(
d32
!=
-
22
.
0
df
)
...
@@ -100,6 +110,7 @@ main ()
...
@@ -100,6 +110,7 @@ main ()
d128
=
tf
;
d128
=
tf
;
if
(
d128
!=
-
22
.
0
dl
)
if
(
d128
!=
-
22
.
0
dl
)
abort
();
abort
();
#endif
/* 2**(-11) = 0.00048828125. */
/* 2**(-11) = 0.00048828125. */
d128
=
0
.
0004
88281251
dl
;
d128
=
0
.
0004
88281251
dl
;
...
...
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