41a04febf6188808373d1fb0f869e0f12989ce57
1 /* { dg-options "-O2" } */
3 /* N1150 5.2 Conversions among decimal floating types and between
4 decimal floating types and generic floating types.
5 C99 6.3.1.5(4) Conversions, arithmetic operands, real floating types. */
14 extern void link_error (void);
19 /* Conversions from decimal float to binary float. */
21 /* Conversions from _Decimal32. */
35 /* Conversions from _Decimal64. */
49 /* Conversions from _Decimal128. */
63 /* Conversions from binary float to decimal float. */
103 /* 2**(-11) = 0.00048828125. */
104 d128
= 0.000488281251dl
;
106 if (sf
!= 0.00048828125f
)
108 /* 2**(-25) = 0.298023223876953125E-7. */
109 d128
= 2.98023223876953125E-8dl
;
111 if (df
< (2.9802322387695312e-08 - 0.00000000001)
112 || df
> (2.9802322387695312e-08 + 0.00000000001))