2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr60451.c
blob2396ba81da157dcacb0187c34aeeb1f1b8bc5f19
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-vectorize -msse2" } */
4 void
5 foo (unsigned char *a, unsigned char *b, unsigned char *c, int size)
7 int i;
9 for (i = 0; i < size; i++)
10 a[i] = (unsigned char) ((unsigned int)1 + b[i] * c[i] * 117);
13 /* { dg-final { scan-assembler "packuswb|vpunpck" } } */