summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr42747.c
blob: 9e7310e1767af5ecc57fe9b52ef41a0aa58ef51b (plain)
1
2
3
4
5
6
7
8
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-O2 -mcpu=power7 -ffast-math" } */

double foo (double x) { return __builtin_sqrt (x); }

/* { dg-final { scan-assembler "xssqrtdp" } } */