2018-04-09 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / predict-13.c
blob385be9e138901a0cd215a6245ff60da0d5d5ad42
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-profile_estimate" } */
4 int main(int argc, char **argv)
6 switch (argc)
8 case 1:
9 return 1;
10 case 2:
11 return 2;
12 case 3:
13 __builtin_abort();
14 case 4:
15 __builtin_abort();
16 default:
17 return 5;
20 return 10;
23 /* { dg-final { scan-tree-dump-times "combined heuristics of edge\[^:\]*: 33.3%" 3 "profile_estimate"} } */
24 /* { dg-final { scan-tree-dump-times "combined heuristics of edge\[^:\]*: 0.1%" 2 "profile_estimate"} } */