2018-01-16 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr52252-st.c
blob5954d45f5ecf78ba316893003eb442c197ab85ff
1 /* { dg-do compile } */
2 /* { dg-additional-options "-mssse3" { target { i?86-*-* x86_64-*-* } } } */
4 #define byte unsigned char
6 void
7 matrix_mul (byte *in, byte *out, int size)
9 int i;
10 for (i = 0; i < size; i++)
12 out[0] = in[0] + in[1] + in[3];
13 out[1] = in[0] + in[2] + in[4];
14 out[2] = in[1] + in[2] + in[4];
15 in += 4;
16 out += 3;
20 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { i?86-*-* x86_64-*-* } } } } */