gcc/testsuite/gcc.dg/tree-ssa/ipa-split-3.c
raw| 1 | int baz (void); |
| 2 | static int |
| 3 | foo (int x) |
| 4 | { |
| 5 | if (__builtin_expect (x <= 0, 0)) |
| 6 | { |
| 7 | __builtin_printf ("foo\n"); |
| 8 | __builtin_printf ("foo\n"); |
| 9 | __builtin_printf ("foo\n"); |
| 10 | __builtin_abort (); |
| 11 | } |
| 12 | return 6; |
| 13 | } |
| 14 | |
| 15 | int a,b,c; |
| 16 | |
| 17 | int |
| 18 | bar (int x) |
| 19 | { |
| 20 | return foo (a) + foo (b) + foo (c); |
| 21 | } |