Restore DECIMAL_DIG macro to C99/C11 value.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / float64x-floath.c
blob00c36f4dbfd4f51fe10bc2f46015e3bce3d2a54b
1 /* Test _Float64x <float.h> macros. */
2 /* { dg-do run } */
3 /* { dg-options "" } */
4 /* { dg-add-options float64x } */
5 /* { dg-add-options ieee } */
6 /* { dg-require-effective-target float64x_runtime } */
8 #define WIDTH 64
9 #define EXT 1
10 #include "floatn-floath.h"
12 #ifndef FLT64X_MANT_DIG
13 # error "FLT64X_MANT_DIG undefined"
14 #endif
16 #ifndef FLT64X_DECIMAL_DIG
17 # error "FLT64X_DECIMAL_DIG undefined"
18 #endif
20 #ifndef FLT64X_DIG
21 # error "FLT64X_DIG undefined"
22 #endif
24 #ifndef FLT64X_MIN_EXP
25 # error "FLT64X_MIN_EXP undefined"
26 #endif
28 #ifndef FLT64X_MIN_10_EXP
29 # error "FLT64X_MIN_10_EXP undefined"
30 #endif
32 #ifndef FLT64X_MAX_EXP
33 # error "FLT64X_MAX_EXP undefined"
34 #endif
36 #ifndef FLT64X_MAX_10_EXP
37 # error "FLT64X_MAX_10_EXP undefined"
38 #endif
40 #ifndef FLT64X_MAX
41 # error "FLT64X_MAX undefined"
42 #endif
44 #ifndef FLT64X_EPSILON
45 # error "FLT64X_EPSILON undefined"
46 #endif
48 #ifndef FLT64X_MIN
49 # error "FLT64X_MIN undefined"
50 #endif
52 #ifndef FLT64X_TRUE_MIN
53 # error "FLT64X_TRUE_MIN undefined"
54 #endif
56 #if FLT64X_MANT_DIG < 64 || FLT64X_MAX_EXP < 16384 || FLT64X_MIN_EXP + FLT64X_MAX_EXP != 3
57 # error "_Float64x bad format"
58 #endif