Debian Codegraph @

gcc/testsuite/gcc.dg/vect/nodump-forwprop-22.c

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_double } */
3 /* { dg-require-effective-target vect_perm } */
4 /* { dg-additional-options "-fdump-tree-cddce1 -fno-tree-fre" } */
5
6 typedef double vec __attribute__((vector_size (2 * sizeof (double))));
7 void f (vec *px, vec *y, vec *z)
8 {
9 vec x = *px;
10 vec t1 = { x[1], x[0] };
11 vec t2 = { x[0], x[1] };
12 *y = t1;
13 *z = t2;
14 }
15
16 /* Optimization in forwprop1, cleanup in cddce1. */
17
18 /* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR" 1 "cddce1" } } */
19 /* { dg-final { scan-tree-dump-not "BIT_FIELD_REF" "cddce1" } } */