* gcc.dg/i386-fpcvt-1.c: New test.
[official-gcc.git] / gcc / testsuite / gcc.dg / i386-387-2.c
blob2456ca0c9345912a4bdcc625742d834910126828
1 /* Verify that -march overrides -mno-fancy-math-387. */
2 /* { dg-do compile { target "i?86-*-*" } } */
3 /* { dg-options "-O -ffast-math -mfpmath=387 -march=i686 -mno-fancy-math-387" } */
4 /* { dg-final { scan-assembler "fsin" } } */
5 /* { dg-final { scan-assembler "fcos" } } */
6 /* { dg-final { scan-assembler "fsqrt" } } */
8 double f1(double x) { return __builtin_sin(x); }
9 double f2(double x) { return __builtin_cos(x); }
10 double f3(double x) { return __builtin_sqrt(x); }