1 /* N1150 4: Characteristics of decimal floating types (not explicit)
2 C99 5.2.4.2.2: Characteristics of floating types.
3 A few simple checks on arithmetic operations. Based on nan-1.c with
4 the consideration of negative zero. */
14 /* Verify that division by negative zero produces a negative infinity
17 if (d32
/-0.0df
!= -__builtin_infd32())
19 if (123.45df
/-0.0df
!= -__builtin_infd32())
23 if (d64
/-0.0dd
!= -__builtin_infd64())
25 if (123.45dd
/-0.0dd
!= -__builtin_infd64())
29 if (d128
/-0.0dl
!= -__builtin_infd64())
31 if (123.45dl
/-0.0dl
!= -__builtin_infd128())
35 if (!__builtin_isnand32(-(d32
/-0.0df
)))
37 if (!__builtin_isnand32(-(0.0df
/-0.0df
)))
41 if (!__builtin_isnand64(-(d64
/-0.0dd
)))
43 if (!__builtin_isnand64(-(0.0dd
/-0.0dd
)))
47 if (!__builtin_isnand128(-(d128
/-0.0dl
)))
49 if (!__builtin_isnand128(-(0.0dl
/-0.0dl
)))