[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / warn-2.c
blob29c6ce50cd71a7c5d6f43ac2fc8934fb1e33dedf
1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-require-effective-target powerpc_vsx_ok } */
4 /* { dg-options "-O -mdejagnu-cpu=power7 -mno-altivec" } */
6 /* { dg-warning "'-mno-altivec' disables vsx" "" { target *-*-* } 0 } */
8 double
9 foo (double *x, double *y)
11 double z[2];
12 int i;
14 for (i = 0; i < 2; i++)
15 z[i] = x[i] + y[i];
16 return z[0] * z[1];
19 /* { dg-final { scan-assembler-not "xsadddp" } } */