Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/vec-andxor1.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 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 } |