ira: Fix go_through_subreg offset calculation [PR115281]
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-prof / val-prof-5.c
blob087310fab57eafda661aa5ac20ba5e4a23be531e
1 /* { dg-options "-O2 -fdump-tree-optimized-details-blocks -fdump-ipa-profile-optimized" } */
2 int a[1000];
3 int b=997;
4 int
5 main()
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;
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"} } */