* gcc.target/sh/mfmovd.c: Extend list of supported targets.
[official-gcc.git] / gcc / testsuite / gcc.target / sh / sh4a-sincos.c
blob423dda1433b9c875c1a38fa257cc85c3e94174f1
1 /* Verify that we generate a single single-precision sine and cosine
2 approximate (fsca) in fast math mode when a function computes both
3 sine and cosine. */
4 /* { dg-do compile { target "sh*-*-*" } } */
5 /* { dg-options "-O -ffast-math" } */
6 /* { dg-skip-if "" { "sh*-*-*" } { "*" } { "-m4a" "-m4a-single" "-m4a-single-only" } } */
7 /* { dg-final { scan-assembler-times "fsca" 1 } } */
9 #include <math.h>
11 double test(double f) { return sin(f) + cos(f); }