1 /* Test that extension from XFmode to __float128 raises underflow for
2 exact tiny values, if trapping on underflow is enabled. */
4 /* { dg-do run { target i?86-*-*gnu* x86_64-*-*gnu* ia64-*-*gnu* } } */
5 /* { dg-options "-D_GNU_SOURCE" } */
6 /* { dg-require-effective-target fenv_exceptions } */
13 volatile sig_atomic_t caught_sigfpe
;
17 handle_sigfpe (int sig
)
26 volatile long double a
= 0x1p
-16384L;
27 volatile __float128 r
;
29 if (fetestexcept (FE_UNDERFLOW
))
33 feenableexcept (FE_UNDERFLOW
);
34 signal (SIGFPE
, handle_sigfpe
);
35 if (sigsetjmp (buf
, 1) == 0)