Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/torture/vector-shuffle1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* PR54219 */ /* { dg-do run } */ extern void abort (void); typedef int v2si __attribute__((vector_size(2*sizeof(int)))); void f(v2si *x) { /* This requires canonicalization of the mask to { 1, 0 }. */ *x = __builtin_shuffle(*x, *x, (v2si) { 5, 0 }); } int main() { v2si y = { 1, 2 }; f(&y); if (y[0] != 2 || y[1] != 1) abort (); return 0; }