1  /* PR target/95169 */
       2  /* { dg-do run { target ia32 } } */
       3  /* { dg-options "-O0 -march=i386 -mtune=generic" } */
       4  /* { dg-require-effective-target fenv_exceptions } */
       5  
       6  #include <fenv.h>
       7  
       8  void
       9  f (double y)
      10  {
      11    if (__builtin_expect (y == 0.0, 0))
      12      __builtin_abort ();
      13  }
      14  
      15  int
      16  main (void)
      17  {
      18    double y = __builtin_nan ("");
      19  
      20    feclearexcept (FE_INVALID);
      21  
      22    f (y);
      23  
      24    if (fetestexcept (FE_INVALID))
      25      __builtin_abort ();
      26  
      27    return 0;
      28  }