Mercurial > hg > CbC > CbC_gcc
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 |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-O2 -fdump-tree-profile_estimate" } */ | |
3 int *a,n,m; | |
4 void test(void); | |
5 void | |
6 t(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"} } */ |