diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.target/sh/sh4a-fsrra.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.target/sh/sh4a-fsrra.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.target/sh/sh4a-fsrra.c b/gcc-4.9/gcc/testsuite/gcc.target/sh/sh4a-fsrra.c new file mode 100644 index 000000000..0bd7d8773 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.target/sh/sh4a-fsrra.c @@ -0,0 +1,11 @@ +/* Verify that we generate single-precision square root reciprocal + approximate (fsrra) in fast math mode on SH4A with FPU. */ +/* { dg-do compile } */ +/* { dg-options "-O -ffast-math" } */ +/* { dg-skip-if "" { "sh*-*-*" } { "*" } { "-m4a" "-m4a-single" "-m4a-single-only" } } */ +/* { dg-final { scan-assembler "fsrra" } } */ + +#include <math.h> + +float test(float f) { return 1 / sqrtf(f); } + |