blob: c00aff08c6edbf7e4462efa1328125dcb5e04e92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
/* { dg-options "-O -mvsx -mno-altivec" } */
/* { dg-warning "-mvsx and -mno-altivec are incompatible" "" { target *-*-* } 1 } */
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" } } */
|