/* { dg-do run { target powerpc*-*-* } } */ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-stats -maltivec" { target powerpc*-*-* } } */ /* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-stats -msse2" { target i?86-*-* x86_64-*-* } } */ #include #include "tree-vect.h" #define N 16 int main1 () { int i; int a[N]; int b[N] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45}; /* Not vetorizable yet (reverse access and forward access). */ for (i = N; i > 0; i--) { a[N-i] = b[i-1]; } /* check results: */ for (i = 0; i