1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-math-errno -fno-trapping-math -msse2 -mno-sse4 -mfpmath=sse" } */
3 
4 float
f1(float f)5 f1 (float f)
6 {
7   return __builtin_rintf (f);
8 }
9 
10 double
f2(double f)11 f2 (double f)
12 {
13   return __builtin_rint (f);
14 }
15 
16 /* { dg-final { scan-assembler-times "\tucomiss\t" 1 } } */
17 /* { dg-final { scan-assembler-times "\tucomisd\t" 1 } } */
18