annotate gcc/testsuite/gcc.dg/predict-12.c @ 132:d34655255c78

update gcc-8.2
author mir3636
date Thu, 25 Oct 2018 10:21:07 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-options "-O2 -fdump-tree-profile_estimate" } */
kono
parents:
diff changeset
3 int *a,n,m;
kono
parents:
diff changeset
4 void test(void);
kono
parents:
diff changeset
5 void
kono
parents:
diff changeset
6 t(void)
kono
parents:
diff changeset
7 {
kono
parents:
diff changeset
8 int i,j;
kono
parents:
diff changeset
9 for (i=0;i<n;i++)
kono
parents:
diff changeset
10 if (a[i])
kono
parents:
diff changeset
11 for (j=0;j<m;j++)
kono
parents:
diff changeset
12 if (a[i+j])
kono
parents:
diff changeset
13 t();
kono
parents:
diff changeset
14 }
kono
parents:
diff changeset
15 /* { dg-final { scan-tree-dump-times "loop guard with recursion" 1 "profile_estimate"} } */
kono
parents:
diff changeset
16 /* { dg-final { scan-tree-dump-times "loop exit with recursion" 2 "profile_estimate"} } */
kono
parents:
diff changeset
17 /* { dg-final { scan-tree-dump-times "recursive call" 1 "profile_estimate"} } */