summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/pr59037.c
blob: fae13c2fa94d38b357efad6649a603ab95d2ee16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O3" } */

typedef int v4si __attribute__ ((vector_size (16)));

int
main (int argc, char** argv)
{
  v4si x = {0,1,2,3};
  x = (v4si) {(x)[3], (x)[2], (x)[1], (x)[0]};
  return x[4];
}