Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/pr103680.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fdump-tree-optimized-details-blocks -fno-early-inlining" } */
3 void foo ();
4 static void
5 test (int i)
6 {
7 if (__builtin_expect_with_probability (i > 5, 1, 0.6))
8 foo ();
9 }
10 void
11 test2(int i)
12 {
13 test (i);
14 if (__builtin_expect_with_probability (i > 4, 1, 0.7))
15 foo ();
16 }
17 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */