| 1 |
/* Verify that the fsca insn is not used when specifying -mno-fsca and |
| 2 |
-funsafe-math-optimizations. */ |
| 3 |
/* { dg-do compile { target { has_fsca } } } */ |
| 4 |
/* { dg-options "-O1 -mno-fsca -funsafe-math-optimizations -fno-math-errno" } */ |
| 5 |
/* { dg-final { scan-assembler-not "fsca" } } */ |
| 6 |
|
| 7 |
#include <math.h> |
| 8 |
|
| 9 |
float |
| 10 |
test_func_00 (float x) |
| 11 |
{ |
| 12 |
return sinf (x) + cosf (x); |
| 13 |
} |
| 14 |
|
| 15 |
float |
| 16 |
test_func_01 (float x) |
| 17 |
{ |
| 18 |
return sinf (x); |
| 19 |
} |
| 20 |
|
| 21 |
float |
| 22 |
test_func_02 (float x) |
| 23 |
{ |
| 24 |
return cosf (x); |
| 25 |
} |