Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / dfp / tr24732-float-dfp-1.c
blobc196816ac4cff008f3590cba64ce5043173603b7
1 /* Test DFP macros defined in <float.h> with DFP support. TR 24732
2 feature test macro causes SUBNORMAL_MIN macros to be defined but
3 not TRUE_MIN ones. */
4 /* { dg-do compile } */
5 /* { dg-options "-std=gnu99" } */
7 #define __STDC_WANT_DEC_FP__
8 #include <float.h>
10 #ifndef DEC32_MANT_DIG
11 # error "DEC32_MANT_DIG not defined"
12 #endif
14 #ifndef DEC64_MANT_DIG
15 # error "DEC64_MANT_DIG not defined"
16 #endif
18 #ifndef DEC128_MANT_DIG
19 # error "DEC128_MANT_DIG not defined"
20 #endif
22 #ifndef DEC32_MIN_EXP
23 # error "DEC32_MIN_EXP not defined"
24 #endif
26 #ifndef DEC64_MIN_EXP
27 # error "DEC64_MIN_EXP not defined"
28 #endif
30 #ifndef DEC128_MIN_EXP
31 # error "DEC128_MIN_EXP not defined"
32 #endif
34 #ifndef DEC32_MAX_EXP
35 # error "DEC32_MAX_EXP not defined"
36 #endif
38 #ifndef DEC64_MAX_EXP
39 # error "DEC64_MAX_EXP not defined"
40 #endif
42 #ifndef DEC128_MAX_EXP
43 # error "DEC128_MAX_EXP not defined"
44 #endif
46 #ifndef DEC32_MAX
47 # error "DEC32_MAX not defined"
48 #endif
50 #ifndef DEC64_MAX
51 # error "DEC64_MAX not defined"
52 #endif
54 #ifndef DEC128_MAX
55 # error "DEC128_MAX not defined"
56 #endif
58 #ifndef DEC32_EPSILON
59 # error "DEC32_EPSILON not defined"
60 #endif
62 #ifndef DEC64_EPSILON
63 # error "DEC64_EPSILON not defined"
64 #endif
66 #ifndef DEC128_EPSILON
67 # error "DEC128_EPSILON not defined"
68 #endif
70 #ifndef DEC32_MIN
71 # error "DEC32_MIN not defined"
72 #endif
74 #ifndef DEC64_MIN
75 # error "DEC64_MIN not defined"
76 #endif
78 #ifndef DEC128_MIN
79 # error "DEC128_MIN not defined"
80 #endif
82 #ifndef DEC32_SUBNORMAL_MIN
83 # error "DEC32_SUBNORMAL_MIN not defined"
84 #endif
86 #ifndef DEC64_SUBNORMAL_MIN
87 # error "DEC64_SUBNORMAL_MIN not defined"
88 #endif
90 #ifndef DEC128_SUBNORMAL_MIN
91 # error "DEC128_SUBNORMAL_MIN not defined"
92 #endif
94 /* These macros from C2X should not be defined. */
96 #ifdef DEC32_TRUE_MIN
97 # error "DEC32_TRUE_MIN defined"
98 #endif
100 #ifdef DEC64_TRUE_MIN
101 # error "DEC64_TRUE_MIN defined"
102 #endif
104 #ifdef DEC128_TRUE_MIN
105 # error "DEC128_TRUE_MIN defined"
106 #endif