* gcc.target/sh/mfmovd.c: Extend list of supported targets.
[official-gcc.git] / gcc / testsuite / gcc.target / sh / sh4a-fsrra.c
blob4ce2e28e22fbebeccb3b54a096ce8955e082061e
1 /* Verify that we generate single-precision square root reciprocal
2 approximate (fsrra) in fast math mode on SH4A with FPU. */
3 /* { dg-do compile { target "sh*-*-*" } } */
4 /* { dg-options "-O -ffast-math" } */
5 /* { dg-skip-if "" { "sh*-*-*" } { "*" } { "-m4a" "-m4a-single" "-m4a-single-only" } } */
6 /* { dg-final { scan-assembler "fsrra" } } */
8 #include <math.h>
10 float test(float f) { return 1 / sqrtf(f); }