038559d41e45b8fbaddf5562824eb0b218d0c114
1 /* { dg-options "-O2" } */
3 /* N1150 5.1 Conversion between decimal floating integer.
5 These should all be folded at compile time. */
15 extern void link_error (void);
25 unsigned long long ull
;
31 /* C99 Section 6.7.2 Type specifiers. Type _Bool is
32 mentioned in this section. Conversions between
33 BOOL and DFP types. */
35 /* Decimal float to unsigned integer. */
70 /* Decimal float to signed integer. */
72 /* Decimal float to BOOL. */
87 /* Unsigned integer to decimal float. */
96 if (d32
!= 345678.0df
)
99 if (d32
!= 1234567.df
)
106 if (d64
!= 345678.0dd
)
109 if (d64
!= 1234567.dd
)
116 if (d128
!= 345678.0dl
)
119 if (d128
!= 1234567.dl
)
122 /* Signed integer to decimal float. */
131 if (d32
!= -345678.0df
)
134 if (d32
!= -1234567.df
)
141 if (d64
!= -345678.0dd
)
144 if (d64
!= -1234567.dd
)
148 if (d128
!= -987.0dl
)
151 if (d128
!= -345678.0dl
)
154 if (d128
!= -1234567.dl
)
157 /* BOOL to decimal float. */