Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/tree-prof/val-prof-1.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 1830386684a0 |
children |
rev | line source |
---|---|
145 | 1 /* { dg-options "-O2 -fdump-tree-optimized -fdump-ipa-profile-optimized" } */ |
111 | 2 int a[1000]; |
3 int b = 256; | |
4 int c = 257; | |
5 int | |
6 main () | |
7 { | |
8 int i; | |
9 int n; | |
10 for (i = 0; i < 1000; i++) | |
11 { | |
12 if (i % 17) | |
13 n = c; | |
14 else n = b; | |
15 a[i] /= n; | |
16 } | |
17 return 0; | |
18 } | |
19 /* autofdo does not do value profiling so far */ | |
131 | 20 /* { dg-final-use-not-autofdo { scan-ipa-dump "Transformation done: div.mod by constant 257" "profile"} } */ |
111 | 21 /* { dg-final-use-not-autofdo { scan-tree-dump "if \\(n_\[0-9\]* != 257\\)" "optimized"} } */ |
22 /* { dg-final-use { scan-tree-dump-not "Invalid sum" "optimized"} } */ |