1 #include "tree-vect.h" 2 3 double u[33]; 4 5 __attribute__((noinline, noclone)) static void foo(int * x)6foo (int *x) 7 { 8 double c = 0.0; 9 int a, b; 10 for (a = 0; a < 33; a++) 11 { 12 for (b = 0; b < 33; b++) 13 c = c + u[a]; 14 u[a] *= 2.0; 15 } 16 *x = c; 17 } 18 19 int main()20main () 21 { 22 int d, e; 23 check_vect (); 24 for (d = 0; d < 33; d++) 25 { 26 u[d] = (d + 2); 27 __asm__ volatile ("" : : : "memory"); 28 } 29 foo (&e); 30 if (e != 33 * (2 + 34) / 2 * 33) 31 __builtin_abort (); 32 return 0; 33 } 34