gcc/testsuite/gcc.target/powerpc/pr42747.c
raw| 1 | /* { dg-do compile { target { powerpc*-*-* } } } */ |
| 2 | /* { dg-skip-if "" { powerpc*-*-darwin* } } */ |
| 3 | /* { dg-options "-O2 -mdejagnu-cpu=power7 -ffast-math" } */ |
| 4 | /* { dg-require-effective-target powerpc_vsx } */ |
| 5 | |
| 6 | double foo (double x) { return __builtin_sqrt (x); } |
| 7 | |
| 8 | /* { dg-final { scan-assembler "xssqrtdp\|fsqrt" } } */ |