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 } } */ 8 9 #include <math.h> 10 test(float f)11float test(float f) { return sinf(f) + cosf(f); } 12 13