1 #include "tree-vect.h" 2 3 int x[1024]; 4 int y[1024]; 5 int z[1024]; 6 foo()7void __attribute__((noinline)) foo() 8 { 9 for (int i = 0; i < 512; ++i) 10 { 11 x[2*i] = x[2*i] << y[2*i]; 12 x[2*i+1] = x[2*i+1] << y[2*i]; 13 z[2*i] = y[2*i]; 14 z[2*i+1] = y[2*i+1]; 15 } 16 } 17 main()18int main() 19 { 20 check_vect (); 21 for (int i = 0; i < 1024; ++i) 22 x[i] = i, y[i] = i % 8; 23 foo (); 24 for (int i = 0; i < 1024; ++i) 25 if (x[i] != i << ((i & ~1) % 8)) 26 __builtin_abort (); 27 return 0; 28 } 29