2018-02-09 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / gcc / testsuite / gcc.target / sh / pr53512-1.c
blob14106c02facd51f08ca1d4a779bff83a8c8dda75
1 /* Verify that the fsca insn is used when specifying -mfsca and
2 -funsafe-math-optimizations. */
3 /* { dg-do compile { target { has_fsca } } } */
4 /* { dg-options "-O1 -mfsca -funsafe-math-optimizations" } */
5 /* { dg-final { scan-assembler-times "fsca" 3 } } */
7 #include <math.h>
9 float
10 test_func_00 (float x)
12 return sinf (x) + cosf (x);
15 float
16 test_func_01 (float x)
18 return sinf (x);
21 float
22 test_func_02 (float x)
24 return cosf (x);