gcc/testsuite/gcc.target/sh/pr53512-3.c
raw| 1 | /* Verify that the fsrra insn is used when specifying -mfsrra and |
| 2 | -funsafe-math-optimizations and -ffinite-math-only. */ |
| 3 | /* { dg-do compile { target { has_fsrra } } } */ |
| 4 | /* { dg-options "-O1 -mfsrra -funsafe-math-optimizations -ffinite-math-only -fno-math-errno" } */ |
| 5 | /* { dg-final { scan-assembler "fsrra" } } */ |
| 6 | |
| 7 | #include <math.h> |
| 8 | |
| 9 | float |
| 10 | test_func_00 (float x) |
| 11 | { |
| 12 | return 1 / sqrtf (x); |
| 13 | } |
| 14 |