2018-04-30 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ipa-split-4.c
blob437ddec966fe35ddb4df0d33af6d727c84c35463
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fdump-tree-fnsplit" } */
3 int make_me_big (void);
4 void abort (void);
6 int
7 split_me (int a)
9 if (__builtin_expect(a<10, 1))
11 abort ();
13 else
15 make_me_big ();
16 make_me_big ();
17 make_me_big ();
18 make_me_big ();
19 return a+1;
23 int
24 test(void)
26 return split_me (0)+split_me(1)+split_me(2);
28 /* { dg-final { scan-tree-dump-times "Splitting function" 1 "fnsplit"} } */