1 /* { dg-require-effective-target vect_int } */ 2 3 #include "tree-vect.h" 4 5 int a[32]; 6 7 void __attribute__((noinline)) test1(void)8test1(void) 9 { 10 a[0] = 1; 11 a[1] = 1; 12 a[2] = 1; 13 a[3] = 1; 14 a[4] = 1; 15 a[5] = 1; 16 a[6] = 1; 17 a[7] = 1; 18 a[8] = 1; 19 a[9] = 1; 20 a[10] = 1; 21 a[11] = 1; 22 a[12] = 1; 23 a[13] = 1; 24 a[14] = 1; 25 a[15] = 1; 26 a[16] = 1; 27 a[17] = 1; 28 a[18] = 1; 29 a[19] = 1; 30 a[20] = 1; 31 a[21] = 1; 32 a[22] = 1; 33 a[23] = 1; 34 a[24] = 1; 35 a[25] = 1; 36 a[26] = 1; 37 a[27] = 1; 38 a[28] = 1; 39 a[29] = 1; 40 a[30] = 1; 41 a[31] = 1; 42 asm ("" : : : "memory"); 43 a[21] = 0; 44 } 45 main()46int main() 47 { 48 check_vect (); 49 test1(); 50 return a[21]; 51 } 52 53 /* { dg-final { scan-tree-dump-times "basic block vectorized" 1 "slp2" } } */ 54