gcc/testsuite/gcc.dg/vect/pr42709.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target vect_int } */ |
| 3 | |
| 4 | #include <stdarg.h> |
| 5 | #include "tree-vect.h" |
| 6 | |
| 7 | #define N 128 |
| 8 | |
| 9 | int *res[N]; |
| 10 | |
| 11 | int |
| 12 | main1 (int *a, int *b, int *c, int *d) |
| 13 | { |
| 14 | int i; |
| 15 | |
| 16 | for (i = 0; i < N/2; i+=4) |
| 17 | { |
| 18 | res[i] = a + 16; |
| 19 | res[i+1] = b + 16; |
| 20 | res[i+2] = c + 16; |
| 21 | res[i+3] = d + 16; |
| 22 | asm volatile ("" ::: "memory"); |
| 23 | } |
| 24 | } |
| 25 | |
| 26 |