gcc/testsuite/gcc.dg/tree-ssa/predict-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fdump-tree-profile_estimate" } */ |
| 3 | int test2(); |
| 4 | int |
| 5 | test (int a, int b) |
| 6 | { |
| 7 | if (__builtin_expect_with_probability (a, 0, 0.4)/__builtin_expect_with_probability (b, 5, 0.2)) |
| 8 | test2(); |
| 9 | } |
| 10 | /* { dg-final { scan-tree-dump-times "first match heuristics: 60.00" 1 "profile_estimate"} } */ |