gcc/testsuite/gcc.dg/vect/vect-dv-1.c
raw| 1 | /* Test compiler crash when dependence analyzer can not represent |
| 2 | dependence relation by distance vector. */ |
| 3 | /* { dg-do compile } */ |
| 4 | /* { dg-require-effective-target vect_int } */ |
| 5 | |
| 6 | int x[199]; |
| 7 | |
| 8 | void foo() |
| 9 | |
| 10 | { |
| 11 | int t,j; |
| 12 | |
| 13 | for (j=99;j>0;j--) |
| 14 | x [j+j]=x[j]; |
| 15 | |
| 16 | for (j=198;j>=100;j--) |
| 17 | if(x[j]) |
| 18 | { |
| 19 | x[j-63]=x[j-3]-x[j]; |
| 20 | } |
| 21 | } |