libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / predict-3.c
blob9da588618542a31fb630343757335004dedbfc2a
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-profile_estimate" } */
3 int test2();
4 int
5 test (int p, int a, int b, int c)
7 int d;
8 if (p)
9 d = __builtin_expect_with_probability (a, 0, 0.8) * b;
10 else
11 d = __builtin_expect_with_probability (a, 0, 0.8) * c;
12 if (d)
13 test2();
15 /* { dg-final { scan-tree-dump-times "first match heuristics: 20.00" 1 "profile_estimate"} } */