summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr22585.c
blob: 9ba2da537faa13cbc3cd39d04b6597293180bbee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR target/22585 */
/* Testcase reduced by Volker Reichelt */
/* { dg-do compile } */
/* { dg-options "-march=i386 -O -ffast-math" } */
/* { dg-require-effective-target ilp32 } */

int
foo (long double d, int i)
{
  if (d == (long double) i)
    return 1;
}