gcc/testsuite/gcc.target/powerpc/error-1.c
raw| 1 | /* { dg-do compile { target { powerpc*-*-* } } } */ |
| 2 | /* { dg-skip-if "" { powerpc*-*-darwin* } } */ |
| 3 | /* { dg-require-effective-target powerpc_vsx } */ |
| 4 | /* { dg-options "-O -mvsx -mno-altivec" } */ |
| 5 | |
| 6 | /* { dg-error "'-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 |