summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr68432-3.c
blob: 173fd332cade9520a2a81242e1262bf7bf19a9e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-options "-O2 -fno-math-errno -fno-trapping-math -msse2 -mno-sse4 -mfpmath=sse" } */

float __attribute__ ((cold))
f1 (float f)
{
  return __builtin_rintf (f);
}

double __attribute__ ((cold))
f2 (double f)
{
  return __builtin_rint (f);
}

/* { dg-final { scan-assembler-not "\tucomiss\t" } } */
/* { dg-final { scan-assembler-not "\tucomisd\t" } } */