* gcc.dg/const-elim-1.c: Remove xfail for xtensa-*-*.
[official-gcc.git] / gcc / testsuite / gcc.dg / sh4a-cosf.c
blobf78c140d5014dde3679934659cec2279b5e17401
1 /* Verify that we generate single-precision sine and cosine approximate
2 (fsca) in fast math mode. */
3 /* { dg-do compile { target "sh*-*-*" } } */
4 /* { dg-options "-O -ffast-math" } */
5 /* { dg-final { scan-assembler "\tfsca\t" } } */
7 #if defined __SH4A__ && ! defined __SH4_NOFPU__
8 #include <math.h>
10 float test(float f) { return cosf(f); }
11 #else
12 asm ("fsca\t");
13 #endif