| 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 "-Ofast -fno-vect-cost-model -fdump-tree-vect-details" } */ |
| 6 |
|
| 7 |
enum a { b }; |
| 8 |
|
| 9 |
struct { |
| 10 |
enum a c; |
| 11 |
} d[10], *e; |
| 12 |
|
| 13 |
void f() { |
| 14 |
int g; |
| 15 |
for (g = 0, e = d; g < sizeof(1); g++, e++) |
| 16 |
if (e->c) |
| 17 |
return; |
| 18 |
} |
| 19 |
|
| 20 |
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */ |