1 /* Verify that we generate a single single-precision sine and cosine
2 approximate (fsca) in fast math mode when a function computes both
4 /* { dg-do compile { target "sh*-*-*" } } */
5 /* { dg-options "-O -ffast-math" } */
6 /* { dg-final { scan-assembler-times "\tfsca\t" 1 } } */
8 #if defined __SH4A__ && ! defined __SH4_NOFPU__
11 float test(float f
) { return sinf(f
) + cosf(f
); }