OSDN Git Service

PR c/17844
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / mips-rsqrt-2.c
1 /* { dg-do compile { target "mips*-*-*" } } */
2 /* { dg-options "-O2 -ffast-math -mips4" } */
3 /* { dg-final { scan-assembler "rsqrt.d" } } */
4 /* { dg-final { scan-assembler "rsqrt.s" } } */
5
6 extern double sqrt(double);
7 extern float sqrtf(float);
8
9 double foo(double x)
10 {
11   return sqrt(1.0/x);
12 }
13
14 float bar(float x)
15 {
16   return sqrtf(1.0f/x);
17 }
18