]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.target/powerpc/warn-1.c
Wrap option names in gcc internal messages with %< and %>.
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / powerpc / warn-1.c
1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-require-effective-target powerpc_vsx_ok } */
4 /* { dg-options "-O -mvsx -mno-altivec" } */
5
6 /* { dg-warning "'-mvsx' and '-mno-altivec' are incompatible" "" { target *-*-* } 0 } */
7
8 double
9 foo (double *x, double *y)
10 {
11 double z[2];
12 int i;
13
14 for (i = 0; i < 2; i++)
15 z[i] = x[i] + y[i];
16 return z[0] * z[1];
17 }
18
19 /* { dg-final { scan-assembler-not "xsadddp" } } */