* gcc.dg/torture/stackalign/builtin-apply-2.c: Fix skip-if syntax.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-prof / val-prof-5.c
blob7f4a15b778626edc244ff932c715c7a90525b198
1 /* { dg-options "-O2 -fdump-tree-optimized -fdump-ipa-profile" } */
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 "Div.mod by constant b.*=997 transformation on insn" "profile" } } */
17 /* { dg-final-use { scan-tree-dump-not "Invalid sum" "optimized"} } */