]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/predict-12.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / predict-12.c
CommitLineData
9bb86f40
JH
1/* { dg-do compile } */
2/* { dg-options "-O2 -fdump-tree-profile_estimate" } */
3int *a,n,m;
4void test(void);
5void
6t(void)
7{
8 int i,j;
9 for (i=0;i<n;i++)
10 if (a[i])
11 for (j=0;j<m;j++)
12 if (a[i+j])
13 t();
14}
15/* { dg-final { scan-tree-dump-times "loop guard with recursion" 1 "profile_estimate"} } */
16/* { dg-final { scan-tree-dump-times "loop exit with recursion" 2 "profile_estimate"} } */
17/* { dg-final { scan-tree-dump-times "recursive call" 1 "profile_estimate"} } */