1 /* { dg-do compile } */ 2 /* { dg-options "-O2 -ftree-vectorize" } */ 3 4 #define N 1024 5 unsigned char a[N], b[N], c[N]; 6 f1(void)7void f1(void) 8 { 9 int i; 10 for (i = 0; i < N; ++i) 11 a[i] = b[i] * c[i]; 12 } 13 f2(void)14void f2(void) 15 { 16 int i; 17 for (i = 0; i < N; ++i) 18 a[i] = b[i] * 2; 19 } 20 f3(void)21void f3(void) 22 { 23 int i; 24 for (i = 0; i < N; ++i) 25 a[i] = b[i] * 20; 26 } 27