testsuite: Revert to the original version of pr100056.c
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr71264.c
blobb372c00832a5546356d54604444a217b03fdfde9
1 /* { dg-do compile } */
3 typedef unsigned char uint8_t;
4 typedef uint8_t footype __attribute__((vector_size(4)));
6 void test(uint8_t *ptr, uint8_t *mask)
8 footype mv;
9 ptr = __builtin_assume_aligned (ptr, __alignof__ (footype));
10 mask = __builtin_assume_aligned (mask, __alignof__ (footype));
11 __builtin_memcpy(&mv, mask, sizeof(mv));
12 for (unsigned i = 0; i < 16; i += 4)
14 footype temp;
15 __builtin_memcpy(&temp, &ptr[i], sizeof(temp));
16 temp ^= mv;
17 __builtin_memcpy(&ptr[i], &temp, sizeof(temp));