Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/vec-andxor1.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do run } */ /* { dg-options "-O" } */ typedef int vec __attribute__((vector_size(4*sizeof(int)))); __attribute__((noinline,noclone)) void f (vec *x) { *x = (*x & 1) ^ 1; } int main() { vec x = { 1, 2, 3, 4 }; f(&x); if (x[0] != 0 || x[1] != 1) __builtin_abort(); return 0; }