Add _FloatN, _FloatNx tests for __builtin_fpclassify.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / fp-int-convert-float128x.c
bloba09ed5d545eb064c670bbbf4319e508cd4d222d7
1 /* Test floating-point conversions. Standard types and _Float128x. */
2 /* { dg-do run } */
3 /* { dg-options "" } */
4 /* { dg-add-options float128x } */
5 /* { dg-require-effective-target float128x_runtime } */
7 #define __STDC_WANT_IEC_60559_TYPES_EXT__
8 #include <float.h>
9 #include "fp-int-convert.h"
11 int
12 main (void)
14 TEST_I_F(signed char, unsigned char, _Float128x, FLT128X_MANT_DIG, FLT128X_MAX_EXP);
15 TEST_I_F(signed short, unsigned short, _Float128x, FLT128X_MANT_DIG, FLT128X_MAX_EXP);
16 TEST_I_F(signed int, unsigned int, _Float128x, FLT128X_MANT_DIG, FLT128X_MAX_EXP);
17 TEST_I_F(signed long, unsigned long, _Float128x, FLT128X_MANT_DIG, FLT128X_MAX_EXP);
18 TEST_I_F(signed long long, unsigned long long, _Float128x, FLT128X_MANT_DIG, FLT128X_MAX_EXP);
19 exit (0);