1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
4 typedef unsigned char uint8_t;
5 typedef uint8_t footype
__attribute__((vector_size(4)));
7 void test(uint8_t *ptr
, uint8_t *mask
)
10 __builtin_memcpy(&mv
, mask
, sizeof(mv
));
11 for (unsigned i
= 0; i
< 16; i
+= 4)
14 __builtin_memcpy(&temp
, &ptr
[i
], sizeof(temp
));
16 __builtin_memcpy(&ptr
[i
], &temp
, sizeof(temp
));
20 /* { dg-final { scan-tree-dump "vectorized 1 loops in function" "vect" {
21 xfail sparc*-*-* } } } */