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 ilp32 } */
6
7int
8foo (long double d, int i)
9{
10  if (d == (long double) i)
11    return 1;
12}
13