* gcc.dg/vect/pr71264.c: XFAIL on SPARC.
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr71264.c
blobebee338356e4f8217d76dc1883212826dace6c3d
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)
9 footype mv;
10 __builtin_memcpy(&mv, mask, sizeof(mv));
11 for (unsigned i = 0; i < 16; i += 4)
13 footype temp;
14 __builtin_memcpy(&temp, &ptr[i], sizeof(temp));
15 temp ^= mv;
16 __builtin_memcpy(&ptr[i], &temp, sizeof(temp));
20 /* { dg-final { scan-tree-dump "vectorized 1 loops in function" "vect" {
21 xfail sparc*-*-* } } } */