1 /* { dg-do run { target { powerpc*-*-linux* } } } */ 2 /* { dg-options "-mlong-double-128" } */ 3 4 /* Check if adding a qNAN and a normal long double does not generate a 5 inexact exception. */ 6 7 #define _GNU_SOURCE 8 #include <fenv.h> 9 main(void)10int main(void) 11 { 12 double x = __builtin_nan (""); 13 long double y = 1.1L; 14 15 feenableexcept (FE_INEXACT); 16 feclearexcept (FE_ALL_EXCEPT); 17 x = x + y; 18 return fetestexcept(FE_INEXACT); 19 } 20