Merge aosp-toolchain/gcc/gcc-4_9 changes.
[official-gcc.git] / gcc-4_9 / gcc / testsuite / gcc.target / sh / pr53512-2.c
blobed410116c675274333f764132ca17c75919925c0
1 /* Verify that the fsca insn is not used when specifying -mno-fsca and
2 -funsafe-math-optimizations. */
3 /* { dg-do compile } */
4 /* { dg-options "-O1 -mno-fsca -funsafe-math-optimizations" } */
5 /* { dg-skip-if "" { "sh*-*-*" } { "-m1" "-m2*" "-m4al" "*nofpu" "-m4-340*" "-m4-400*" "-m4-500*" "-m5*" } { "" } } */
6 /* { dg-final { scan-assembler-not "fsca" } } */
8 #include <math.h>
10 float
11 test_func_00 (float x)
13 return sinf (x) + cosf (x);
16 float
17 test_func_01 (float x)
19 return sinf (x);
22 float
23 test_func_02 (float x)
25 return cosf (x);