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-skip-if "" { "sh*-*-*" } { "*" } { "-m4a" "-m4a-single" "-m4a-single-only" } } */
7 /* { dg-final { scan-assembler-times "fsca" 1 } } */
11 float test(float f
) { return sinf(f
) + cosf(f
); }