* gcc.target/sh/mfmovd.c: Extend list of supported targets.
[official-gcc.git] / gcc / testsuite / gcc.target / sh / sh4a-sincosf.c
blob0ca33e30a0fdf1e1e28fafa115d77cbd43bc8af0
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 float test(float f) { return sinf(f) + cosf(f); }