Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/tree-prof/switch-case-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* { dg-options "-O2 -fdump-rtl-expand-all" } */ | 1 /* { dg-options "-O2 -fdump-ipa-profile-all" } */ |
2 int g; | 2 int g; |
3 | 3 |
4 __attribute__((noinline)) void foo (int n) | 4 __attribute__((noinline)) void foo (int n) |
5 { | 5 { |
6 switch (n) | 6 switch (n) |
34 for (i = 0; i < 10000; i++) | 34 for (i = 0; i < 10000; i++) |
35 foo ((i * i) % 5); | 35 foo ((i * i) % 5); |
36 return 0; | 36 return 0; |
37 } | 37 } |
38 /* autofdo cannot do that precise execution numbers */ | 38 /* autofdo cannot do that precise execution numbers */ |
39 /* { dg-final-use-not-autofdo { scan-rtl-dump-times ";; basic block\[^\\n\]*count 4000" 2 "expand"} } */ | 39 /* { dg-final-use-not-autofdo { scan-ipa-dump-times ";; basic block\[^\\n\]*count 4000" 2 "profile"} } */ |
40 /* { dg-final-use-not-autofdo { scan-rtl-dump-times ";; basic block\[^\\n\]*count 2000" 1 "expand"} } */ | 40 /* { dg-final-use-not-autofdo { scan-ipa-dump-times ";; basic block\[^\\n\]*count 2000" 1 "profile"} } */ |