blob: 8e8fa0c1bdc5e312dd8869e186ffccb6e7a68f34 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-fre1" } */
typedef int v4si __attribute__ ((vector_size (16)));
int
main (int argc, char** argv)
{
int i = 2;
int j = ((v4si){0, 1, 2, 3})[i];
return ((v4si){1, 2, 42, 0})[j];
}
/* { dg-final { scan-tree-dump "return 42;" "fre1" } } */