aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tree-ssa/forwprop-19.c
blob: f309e3c7b4ecf64da879df9170e8cbd88a80bf06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-forwprop1" } */

typedef int vec __attribute__((vector_size (4 * sizeof (int))));
void f (vec *x1, vec *x2)
{
  vec m = { 1, 2, 3, 0 };
  vec n = { 3, 0, 1, 2 };
  vec y = __builtin_shuffle (*x1, *x2, n);
  vec z = __builtin_shuffle (y, m);
  *x1 = z;
}

/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "forwprop1" } } */
/* { dg-final { cleanup-tree-dump "forwprop1" } } */