* gcc.dg/ucnid-[23456].c: XFAIL on AIX.
[official-gcc.git] / gcc / testsuite / gcc.dg / mips-rsqrt-3.c
blob870a5c9aa6a820e6aaae2ffb6a81294f8291819e
1 /* { dg-do compile { target "mips*-*-*" } } */
2 /* { dg-options "-O2 -mips4" } */
3 /* { dg-final { scan-assembler-not "rsqrt.d" } } */
4 /* { dg-final { scan-assembler-not "rsqrt.s" } } */
6 extern double sqrt(double);
7 extern float sqrtf(float);
9 double foo(double x)
11 return 1.0/sqrt(x);
14 double bar(double x)
16 return sqrt(1.0/x);
19 float foof(float x)
21 return 1.0f/sqrtf(x);
24 float barf(float x)
26 return sqrtf(1.0f/x);