1 /* { dg-do compile } */
2 /* { dg-additional-options "-mssse3" { target { i?86-*-* x86_64-*-* } } } */
4 #define byte unsigned char
7 matrix_mul (byte
*in
, byte
*out
, int size
)
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];
20 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { i?86-*-* x86_64-*-* } } } } */