1 /* { dg-do compile } */ 2 /* { dg-options "-O2 -msse4.1 -mfpmath=sse" } */ 3 4 __attribute__((noinline, noclone)) double f1(double x)5f1 (double x) 6 { 7 return __builtin_roundeven (x); 8 } 9 10 __attribute__((noinline, noclone)) float f2(float x)11f2 (float x) 12 { 13 return __builtin_roundevenf (x); 14 } 15 16 /* { dg-final { scan-assembler-times "roundsd\[^\n\r\]*xmm" 1 } } */ 17 /* { dg-final { scan-assembler-times "roundss\[^\n\r\]*xmm" 1 } } */ 18