1 /* { dg-options "-std=gnu99" } */
3 /* N1150 4: Characteristics of decimal floating types (not explicit)
4 C99 5.2.4.2.2: Characteristics of floating types.
5 A few simple checks on arithmetic operations. Based on nan-1.c with
6 the consideration of negative zero. */
8 extern void abort (void);
16 /* Verify that division by negative zero produces a negative infinity
19 if (d32/-0.0df != -__builtin_infd32())
21 if (123.45df/-0.0df != -__builtin_infd32())
25 if (d64/-0.0dd != -__builtin_infd64())
27 if (123.45dd/-0.0dd != -__builtin_infd64())
31 if (d128/-0.0dl != -__builtin_infd64())
33 if (123.45dl/-0.0dl != -__builtin_infd128())
37 if (!__builtin_isnand32(-(d32/-0.0df)))
39 if (!__builtin_isnand32(-(0.0df/-0.0df)))
43 if (!__builtin_isnand64(-(d64/-0.0dd)))
45 if (!__builtin_isnand64(-(0.0dd/-0.0dd)))
49 if (!__builtin_isnand128(-(d128/-0.0dl)))
51 if (!__builtin_isnand128(-(0.0dl/-0.0dl)))