* gcc.target/sh/mfmovd.c: Extend list of supported targets.
[official-gcc.git] / gcc / testsuite / gcc.target / sh / sh4a-cos.c
blobc2e421c6a055fcd68c06b8bada41d9a3a7d8ceec
1 /* Verify that we generate single-precision sine and cosine approximate
2 (fsca) in fast math mode on SH4A with FPU. */
3 /* { dg-do compile { target "sh*-*-*" } } */
4 /* { dg-options "-O -ffast-math" } */
5 /* { dg-skip-if "" { "sh*-*-*" } { "*" } { "-m4a" "-m4a-single" "-m4a-single-only" } } */
6 /* { dg-final { scan-assembler "fsca" } } */
8 #include <math.h>
10 double test(double f) { return cos(f); }