PR rtl-optimization/87918
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr85950.c
blobdff25e57bd8d59aa31730dce2f1b079a3ecf77ae
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -msse4.1 -mfpmath=sse" } */
4 double floor (double);
5 double ceil (double);
7 int ifloor (double x) { return floor (x); }
8 int iceil (double x) { return ceil (x); }
10 #ifdef __x86_64__
11 long long llfloor (double x) { return floor (x); }
12 long long llceil (double x) { return ceil (x); }
13 #endif
15 /* { dg-final { scan-assembler-times "roundsd" 2 { target ia32 } } } */
16 /* { dg-final { scan-assembler-times "roundsd" 4 { target { ! ia32 } } } } */