1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-ipa-profile_estimate-blocks-details" } */
12 A
: __attribute__((cold
))
16 B
: __attribute__((hot
))
21 /* { dg-final { scan-ipa-dump-times "block 4, loop depth 0, count 0, freq 1\[^0-9\]" 1 "profile_estimate" } } */
23 /* Note: we're attempting to match some number > 6000, i.e. > 60%.
24 The exact number ought to be tweekable without having to juggle
25 the testcase around too much. */
26 /* { dg-final { scan-ipa-dump-times "block 5, loop depth 0, count 0, freq \[6-9\]\[0-9\]\[0-9\]\[0-9\]" 1 "profile_estimate" } } */
28 /* { dg-final { cleanup-ipa-dump "profile_estimate" } } */