]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/vec-andxor1.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / vec-andxor1.c
1 /* { dg-do run } */
2 /* { dg-options "-O" } */
3
4 typedef int vec __attribute__((vector_size(4*sizeof(int))));
5
6 __attribute__((noinline,noclone))
7 void f (vec *x) {
8 *x = (*x & 1) ^ 1;
9 }
10
11 int main() {
12 vec x = { 1, 2, 3, 4 };
13 f(&x);
14 if (x[0] != 0 || x[1] != 1)
15 __builtin_abort();
16 return 0;
17 }