]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-prof/val-prof-5.c
982bcb1343523dfe59598503d0539c9d37e57550
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-prof / val-prof-5.c
1 /* { dg-options "-O2 -fdump-tree-optimized -fdump-ipa-profile-optimized" } */
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 */
16 /* { dg-final-use-not-autofdo { scan-ipa-dump "Transformation done: div.mod by constant 997" "profile" } } */
17 /* { dg-final-use { scan-tree-dump-not "Invalid sum" "optimized"} } */