| 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 |
struct foostr { |
| 8 |
_Complex short f1; |
| 9 |
_Complex short f2; |
| 10 |
}; |
| 11 |
struct foostr a[16] __attribute__ ((__aligned__(16))) = {}; |
| 12 |
struct foostr c[16] __attribute__ ((__aligned__(16))); |
| 13 |
struct foostr res[16] = {}; |
| 14 |
void |
| 15 |
foo (void) |
| 16 |
{ |
| 17 |
int i; |
| 18 |
for (i = 0; i < 16; i++) |
| 19 |
{ |
| 20 |
if (c[i].f1 != res[i].f1) |
| 21 |
abort (); |
| 22 |
if (c[i].f2 != res[i].f2) |
| 23 |
abort (); |
| 24 |
} |
| 25 |
} |