]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-76.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-fre-76.c
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-fre1" } */
3
4 typedef int v4si __attribute__((vector_size(__SIZEOF_INT__ * 4)));
5 int foo (int *a)
6 {
7 __builtin_memset (a, 0, 2 * __SIZEOF_INT__);
8 a[2] = 2;
9 a[0] = 1;
10 a[3] = 3;
11 v4si x = *(v4si *)a;
12 *(v4si *)&a[4] = x;
13 return a[4] + a[5] + a[7];
14 }
15
16 /* { dg-final { scan-tree-dump "return 4;" "fre1" } } */