2018-02-09 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / gcc / testsuite / gcc.target / sh / sh4a-sincosf.c
blob533c83c08b47016049232532fb47c81c6ff9ad62
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 { sh4a && any_fpu } } } */
5 /* { dg-options "-O -ffast-math" } */
6 /* { dg-final { scan-assembler-times "fsca" 1 } } */
8 #include <math.h>
10 float
11 test (float f)
13 return sinf (f) + cosf (f);