Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / tree-prof / val-prof-1.c
blobdfe994ffef9bd114a22f702d8800504133267d00
1 /* { dg-options "-O2 -fdump-tree-optimized -fdump-tree-tree_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-tree-dump "Div.mod by constant n=257 transformation on insn" "tree_profile"} } */
19 /* { dg-final-use { scan-tree-dump "if \\(n != 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-tree-dump "tree_profile" } } */