PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr52252-ld.c
blobe17cabe10488dc354eb890d5a65cf8e8ee9578cc
1 /* { dg-do compile } */
2 /* { dg-additional-options "-mssse3" { target { i?86-*-* x86_64-*-* } } } */
3 #define byte unsigned char
5 void
6 matrix_mul (byte *in, byte *out, int size)
8 int i;
9 for (i = 0; i < size; i++)
11 byte in0 = in[0];
12 byte in1 = in[1];
13 byte in2 = in[2];
14 byte out0, out1, out2, out3;
15 out0 = in0 + in1;
16 out1 = in0 + in2;
17 out2 = in1 + in2;
18 out3 = in0 + in1 + in2;
19 out[0] = out0;
20 out[1] = out1;
21 out[2] = out2;
22 out[3] = out3;
23 in += 3;
24 out += 4;
28 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { i?86-*-* x86_64-*-* } } } } */