gcc/testsuite/gcc.dg/vect/vect-early-break_64.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 | /* { dg-additional-options "-fdump-tree-vect-all" } */ |
| 6 | |
| 7 | int d(unsigned); |
| 8 | |
| 9 | void a() { |
| 10 | char b[8]; |
| 11 | unsigned c = 0; |
| 12 | while (c < 7 && b[c]) |
| 13 | ++c; |
| 14 | if (d(c)) |
| 15 | return; |
| 16 | } |
| 17 | |
| 18 | /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_partial_vectors } } } */ |