blob: ea91a612376a6b6d3254ec451b148567476e8b5a [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O -fprofile-arcs -fdump-tree-lim1-details" } */
struct thread_param
{
long* buf;
long iterations;
long accesses;
} param;
void access_buf(struct thread_param* p)
{
long i,j;
long iterations = p->iterations;
long accesses = p->accesses;
for (i=0; i<iterations; i++)
{
long* pbuf = p->buf;
for (j=0; j<accesses; j++)
pbuf[j] += 1;
}
}
/* { dg-final { scan-tree-dump-times "Executing store motion of __gcov0.access_buf\\\[\[01\]\\\] from loop 1" 2 "lim1" } } */
/* { dg-final { cleanup-tree-dump "lim1" } } */