| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-add-options vect_early_break } */ |
| 3 |
/* { dg-require-effective-target vect_early_break } */ |
| 4 |
/* { dg-require-effective-target vect_int } */ |
| 5 |
/* { dg-additional-options "-O3" } */ |
| 6 |
|
| 7 |
/* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" } } */ |
| 8 |
|
| 9 |
struct h { |
| 10 |
int b; |
| 11 |
int f; |
| 12 |
} k; |
| 13 |
|
| 14 |
void n(int m) { |
| 15 |
struct h a = k; |
| 16 |
for (int o = m; o; ++o) { |
| 17 |
if (a.f) |
| 18 |
__builtin_unreachable(); |
| 19 |
if (o > 1) |
| 20 |
__builtin_unreachable(); |
| 21 |
*(&k.b + o) = 1; |
| 22 |
} |
| 23 |
} |