2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr85693.c
blob214a739fcbd6956b360c5e8e42e57b058b2dd71b
1 /* { dg-do compile }
2 /* { dg-options "-msse2 -O2 -ftree-vectorize" } */
4 #define N 1024
6 int abs (int);
8 unsigned char pix1[N], pix2[N];
10 int foo (void)
12 int i_sum = 0;
13 int i;
15 for (i = 0; i < N; i++)
16 i_sum += abs (pix1[i] - pix2[i]);
18 return i_sum;
21 /* { dg-final { scan-assembler "psadbw" } } */