view gcc/testsuite/gcc.dg/tree-ssa/forwprop-19.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { 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" } } */