1 /* Test __builtin_nansd* functions. Test requiring runtime exceptions
4 /* { dg-require-effective-target fenv_exceptions_dfp } */
5 /* { dg-options "" } */
9 volatile _Decimal32 d32
= __builtin_nansd32 ("");
10 volatile _Decimal64 d64
= __builtin_nansd64 ("");
11 volatile _Decimal128 d128
= __builtin_nansd128 ("");
13 extern void abort (void);
14 extern void exit (int);
19 feclearexcept (FE_ALL_EXCEPT
);
21 if (!fetestexcept (FE_INVALID
))
23 feclearexcept (FE_ALL_EXCEPT
);
25 if (fetestexcept (FE_INVALID
))
27 feclearexcept (FE_ALL_EXCEPT
);
29 if (!fetestexcept (FE_INVALID
))
31 feclearexcept (FE_ALL_EXCEPT
);
33 if (fetestexcept (FE_INVALID
))
35 feclearexcept (FE_ALL_EXCEPT
);
37 if (!fetestexcept (FE_INVALID
))
39 feclearexcept (FE_ALL_EXCEPT
);
41 if (fetestexcept (FE_INVALID
))