blob: 9da588618542a31fb630343757335004dedbfc2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-profile_estimate" } */
int test2();
int
test (int p, int a, int b, int c)
{
int d;
if (p)
d = __builtin_expect_with_probability (a, 0, 0.8) * b;
else
d = __builtin_expect_with_probability (a, 0, 0.8) * c;
if (d)
test2();
}
/* { dg-final { scan-tree-dump-times "first match heuristics: 20.00" 1 "profile_estimate"} } */
|