1 /* { dg-do compile { target freorder } } */
2 /* { dg-options "-O2 -fdump-tree-optimized-details-blocks -fdump-rtl-bbpart-details-blocks -freorder-blocks-and-partition" } */
4 void bar (void) __attribute__((leaf
, cold
));
8 foo (int x
, int y
, int z
)
10 static int f
__attribute__((section ("mysection")));
12 if (__builtin_expect (x
, 0))
13 if (__builtin_expect (y
, 0))
14 if (__builtin_expect (z
, 0))
57 /* { dg-final { scan-tree-dump-times "Invalid sum" 0 "optimized"} } */
58 /* { dg-final { scan-tree-dump-times "count 0 .precise" 1 "optimized"} } */
59 /* { dg-final { scan-rtl-dump-times "COLD_PARTITION" 1 "bbpart"} } */