gcc/testsuite/gcc.dg/vect/pr36493.c
raw| 1 | /* { dg-require-effective-target vect_long } */ |
| 2 | |
| 3 | #include "tree-vect.h" |
| 4 | |
| 5 | int |
| 6 | main (void) |
| 7 | { |
| 8 | int i; |
| 9 | long x[12] __attribute__((aligned(__BIGGEST_ALIGNMENT__))); |
| 10 | |
| 11 | check_vect (); |
| 12 | |
| 13 | x[0] = 1; |
| 14 | for (i = 0; i < 12; i++) |
| 15 | x[i] = i; |
| 16 | |
| 17 | if (x[0] != 0) |
| 18 | abort (); |
| 19 | |
| 20 | return 0; |
| 21 | } |
| 22 | |
| 23 | /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */ |
| 24 |