Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/tree-prof/val-prof-5.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
rev | line source |
---|---|
111 | 1 /* { dg-options "-O2 -fdump-tree-optimized -fdump-ipa-profile" } */ |
2 int a[1000]; | |
3 int b=997; | |
4 int | |
5 main() | |
6 { | |
7 int i; | |
8 for (i = 0; i < 1000; i++) | |
9 if (a[i] != 1) | |
10 a[i]/=b; | |
11 else | |
12 a[i]/=b; | |
13 return 0; | |
14 } | |
15 /* autofdo does not do value profiling so far */ | |
131 | 16 /* { dg-final-use-not-autofdo { scan-ipa-dump "Transformation done: div.mod by constant 997" "profile" } } */ |
111 | 17 /* { dg-final-use { scan-tree-dump-not "Invalid sum" "optimized"} } */ |