Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / sh4a-fsrra.c
blobc8f04e4d2e2726df0c6402fed9cc1374398ce424
1 /* Verify that we generate single-precision square root reciprocal
2 approximate (fsrra) in fast math mode. */
3 /* { dg-do compile { target "sh*-*-*" } } */
4 /* { dg-options "-O -ffast-math" } */
5 /* { dg-final { scan-assembler "\tfsrra\t" } } */
7 #if defined __SH4A__ && ! defined __SH4_NOFPU__
8 #include <math.h>
10 float test(float f) { return 1 / sqrtf(f); }
11 #else
12 asm ("fsrra\t");
13 #endif