| 1 |
/* { dg-do compile { target lp64 } } */ |
| 2 |
/* { dg-options "-mvsx -O2 -ffast-math" } */ |
| 3 |
/* { dg-additional-options "-mdejagnu-cpu=power9" { target { ! has_arch_pwr9 } } } */ |
| 4 |
/* { dg-require-effective-target powerpc_vsx } */ |
| 5 |
/* { dg-require-effective-target float128 } */ |
| 6 |
|
| 7 |
extern _Float128 sqrtf128 (_Float128); |
| 8 |
|
| 9 |
/* Check sqrt optimizations that are done for double are also done for |
| 10 |
_Float128. */ |
| 11 |
|
| 12 |
_Float128 |
| 13 |
sqrt_x_times_sqrt_x (_Float128 x) |
| 14 |
{ |
| 15 |
return sqrtf128 (x) * sqrtf128 (x); |
| 16 |
} |
| 17 |
|
| 18 |
/* { dg-final { scan-assembler-not {\mxssqrtqp\M} } } */ |
| 19 |
/* { dg-final { scan-assembler-not {\mbl\M} } } */ |