OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ipa-split-4.c] - Blame information for rev 749

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O3 -fdump-tree-fnsplit" } */
3
int make_me_big (void);
4
void abort (void);
5
 
6
int
7
split_me (int a)
8
{
9
  if (__builtin_expect(a<10, 1))
10
    {
11
      abort ();
12
    }
13
  else
14
    {
15
      make_me_big ();
16
      make_me_big ();
17
      make_me_big ();
18
      make_me_big ();
19
      return a+1;
20
    }
21
}
22
 
23
int
24
test(void)
25
{
26
  return split_me (0)+split_me(1)+split_me(2);
27
}
28
/* { dg-final { scan-tree-dump-times "Splitting function" 1 "fnsplit"} } */
29
/* { dg-final { cleanup-tree-dump "fnsplit" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.