blob: 76ac0c4e26e5192ec237420d25f8106f75860fc1 [file] [log] [blame]
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-O -mvsx -mno-altivec" } */
/* { dg-warning "'-mvsx' and '-mno-altivec' are incompatible" "" { target *-*-* } 0 } */
double
foo (double *x, double *y)
{
double z[2];
int i;
for (i = 0; i < 2; i++)
z[i] = x[i] + y[i];
return z[0] * z[1];
}
/* { dg-final { scan-assembler-not "xsadddp" } } */