]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-34.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-dse-34.c
CommitLineData
773d0331
RB
1/* { dg-do compile } */
2/* { dg-options "-O -fdump-tree-dse1-details" } */
3
4void f(int n, char *p0, char *p1, char *p2, char *o)
5{
6 int t0, t1;
7 __builtin_memcpy(&t0, p0, 1);
8 __builtin_memcpy(&t1, p1, 1);
9 if (n==3)
10 __builtin_memcpy(o+2, p2, 1);
11 __builtin_memcpy(o+0, &t0, 1);
12 __builtin_memcpy(o+1, &t1, 1);
13}
14
15/* { dg-final { scan-tree-dump-times "Deleted dead store" 2 "dse1" } } */