2012-08-21 Marc Glisse <marc.glisse@inria.fr>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / forwprop-19.c
blob6d25c1bb4a5519fb1b7e5590b33d53e34ebbbc60
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-forwprop2" } */
4 typedef int vec __attribute__((vector_size (4 * sizeof (int))));
5 void f (vec *x1, vec *x2)
7 vec m = { 1, 2, 3, 0 };
8 vec n = { 3, 0, 1, 2 };
9 vec y = __builtin_shuffle (*x1, *x2, n);
10 vec z = __builtin_shuffle (y, m);
11 *x1 = z;
14 /* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "forwprop2" } } */
15 /* { dg-final { cleanup-tree-dump "forwprop2" } } */