gcc/testsuite/gcc.target/i386/sse4_1-round-roundeven-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -msse4.1 -mfpmath=sse" } */ |
| 3 | |
| 4 | __attribute__((noinline, noclone)) double |
| 5 | f1 (double x) |
| 6 | { |
| 7 | return __builtin_roundeven (x); |
| 8 | } |
| 9 | |
| 10 | __attribute__((noinline, noclone)) float |
| 11 | f2 (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 } } */ |