1 /* Test _Float128 <float.h> macros. */ 2 /* { dg-do run } */ 3 /* { dg-options "" } */ 4 /* { dg-add-options float128 } */ 5 /* { dg-add-options ieee } */ 6 /* { dg-require-effective-target float128_runtime } */ 7 8 #define WIDTH 128 9 #define EXT 0 10 #include "floatn-floath.h" 11 12 #ifndef FLT128_MANT_DIG 13 # error "FLT128_MANT_DIG undefined" 14 #endif 15 16 #ifndef FLT128_DECIMAL_DIG 17 # error "FLT128_DECIMAL_DIG undefined" 18 #endif 19 20 #ifndef FLT128_DIG 21 # error "FLT128_DIG undefined" 22 #endif 23 24 #ifndef FLT128_MIN_EXP 25 # error "FLT128_MIN_EXP undefined" 26 #endif 27 28 #ifndef FLT128_MIN_10_EXP 29 # error "FLT128_MIN_10_EXP undefined" 30 #endif 31 32 #ifndef FLT128_MAX_EXP 33 # error "FLT128_MAX_EXP undefined" 34 #endif 35 36 #ifndef FLT128_MAX_10_EXP 37 # error "FLT128_MAX_10_EXP undefined" 38 #endif 39 40 #ifndef FLT128_MAX 41 # error "FLT128_MAX undefined" 42 #endif 43 44 #ifndef FLT128_EPSILON 45 # error "FLT128_EPSILON undefined" 46 #endif 47 48 #ifndef FLT128_MIN 49 # error "FLT128_MIN undefined" 50 #endif 51 52 #ifndef FLT128_TRUE_MIN 53 # error "FLT128_TRUE_MIN undefined" 54 #endif 55 56 #if FLT128_MANT_DIG != 113 || FLT128_MAX_EXP != 16384 || FLT128_MIN_EXP != -16381 57 # error "_Float128 bad format" 58 #endif 59