(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
sh/
sh4a-sincosf.c
       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 } } */
       7  
       8  #include <math.h>
       9  
      10  float
      11  test (float f)
      12  {
      13    return sinf (f) + cosf (f);
      14  }