gcc/testsuite/gcc.dg/vect/vect-early-break_27.c
raw| 1 | /* { dg-add-options vect_early_break } */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-require-effective-target vect_early_break } */ |
| 4 | /* { dg-require-effective-target vect_int } */ |
| 5 | |
| 6 | void abort (); |
| 7 | int a[128]; |
| 8 | |
| 9 | int main () |
| 10 | { |
| 11 | int i; |
| 12 | for (i = 1; i < 128; i++) |
| 13 | if (a[i] != i%4 + 1) |
| 14 | abort (); |
| 15 | if (a[0] != 5) |
| 16 | abort (); |
| 17 | } |
| 18 | |
| 19 | /* { dg-final { scan-tree-dump "vectorized 1 loops in function" "vect" } } */ |