Pass name cleanups
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-prof / val-prof-1.c
blobd6f603e8b3cb5aa3ca69a16462488b08aaa7806c
1 /* { dg-options "-O2 -fdump-tree-optimized -fdump-ipa-profile" } */
2 int a[1000];
3 int b = 256;
4 int c = 257;
5 main ()
7 int i;
8 int n;
9 for (i = 0; i < 1000; i++)
11 if (i % 17)
12 n = c;
13 else n = b;
14 a[i] /= n;
16 return 0;
18 /* { dg-final-use { scan-ipa-dump "Div.mod by constant n_\[0-9\]*=257 transformation on insn" "profile"} } */
19 /* { dg-final-use { scan-tree-dump "if \\(n_\[0-9\]* != 257\\)" "optimized"} } */
20 /* { dg-final-use { scan-tree-dump-not "Invalid sum" "optimized"} } */
21 /* { dg-final-use { cleanup-tree-dump "optimized" } } */
22 /* { dg-final-use { cleanup-ipa-dump "profile" } } */