1 /* { dg-options "-std=gnu99" } */
3 /* This test assumes IEEE float and double. It also tests long double
4 but makes no assumption about its size or range of values. */
8 volatile _Decimal32 sd;
9 volatile _Decimal64 dd;
10 volatile _Decimal128 td;
13 volatile long double tf; /* might actually be df or xf, doesn't matter */
15 CONVERT_VALID_ALL (t1, 0.0, 0.)
16 CONVERT_VALID_ALL (t2, 1.0, 0.)
17 CONVERT_VALID_ALL (t3, -11.5, 0.)
18 CONVERT_VALID_ALL (t4, 7.0, 0.1e-14)
19 CONVERT_VALID_ALL (t5, -7.0, 0.1e-14)
20 CONVERT_VALID_ALL (t6, 999999., 0.)
21 CONVERT_VALID_ALL (t7, -999999., 0.)