1 /* Test _Float16 <float.h> macros. */
3 /* { dg-options "" } */
4 /* { dg-add-options float16 } */
5 /* { dg-require-effective-target float16_runtime } */
9 #include "floatn-floath.h"
11 #ifndef FLT16_MANT_DIG
12 # error "FLT16_MANT_DIG undefined"
15 #ifndef FLT16_DECIMAL_DIG
16 # error "FLT16_DECIMAL_DIG undefined"
20 # error "FLT16_DIG undefined"
24 # error "FLT16_MIN_EXP undefined"
27 #ifndef FLT16_MIN_10_EXP
28 # error "FLT16_MIN_10_EXP undefined"
32 # error "FLT16_MAX_EXP undefined"
35 #ifndef FLT16_MAX_10_EXP
36 # error "FLT16_MAX_10_EXP undefined"
40 # error "FLT16_MAX undefined"
44 # error "FLT16_EPSILON undefined"
48 # error "FLT16_MIN undefined"
51 #ifndef FLT16_TRUE_MIN
52 # error "FLT16_TRUE_MIN undefined"
55 #if FLT16_DECIMAL_DIG > DECIMAL_DIG
56 # error "FLT16_DECIMAL_DIG > DECIMAL_DIG"
59 #if FLT16_MANT_DIG != 11 || FLT16_MAX_EXP != 16 || FLT16_MIN_EXP != -13
60 # error "_Float16 bad format"