Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / sh4a-sincos.c
blobf42937975346dad0e999826904504418aca2f7bb
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-final { scan-assembler-times "\tfsca\t" 1 } } */
8 #if defined __SH4A__ && ! defined __SH4_NOFPU__
9 #include <math.h>
11 double test(double f) { return sin(f) + cos(f); }
12 #else
13 asm ("fsca\t");
14 #endif