1  /* PR target/22585 */
       2  /* Testcase reduced by Volker Reichelt */
       3  /* { dg-do compile } */
       4  /* { dg-options "-march=i386 -O -ffast-math" } */
       5  /* { dg-require-effective-target ia32 } */
       6  
       7  int
       8  foo (long double d, int i)
       9  {
      10    if (d == (long double) i)
      11      return 1;
      12  }