[testsuite] Fix directives order
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / warn-2.c
blob446ee5a2a3d6f56b4dce2113497e7f62a003f468
1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-require-effective-target powerpc_vsx_ok } */
4 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */
5 /* { dg-options "-O -mcpu=power7 -mno-altivec" } */
7 /* { dg-warning "-mno-altivec disables vsx" "" { target *-*-* } 0 } */
9 double
10 foo (double *x, double *y)
12 double z[2];
13 int i;
15 for (i = 0; i < 2; i++)
16 z[i] = x[i] + y[i];
17 return z[0] * z[1];
20 /* { dg-final { scan-assembler-not "xsadddp" } } */