Debian Codegraph @

gcc/testsuite/gcc.dg/vect/pr33804.c

raw
1 /* Disabling epilogues until we find a better way to deal with scans. */
2 /* { dg-additional-options "--param vect-epilogues-nomask=0" } */
3 /* { dg-do compile } */
4 /* { dg-require-effective-target vect_int } */
5
6 void f(unsigned char *s, unsigned char *d, int n) {
7 int i;
8 for (i = 0; i < n; i += 4) {
9 d[i + 0] += s[i + 0];
10 d[i + 1] += s[i + 1];
11 d[i + 2] += s[i + 2];
12 d[i + 3] += s[i + 3];
13 }
14 }
15
16 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail { vect_no_align && { ! vect_hw_misalign } } } } } */
17 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail { vect_no_align && { ! vect_hw_misalign } } } } } */