libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr33804.c
blob0db13674b426b8d6c82736c7f3e2328cb0f4f015
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 } */
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];
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 } } } } } */