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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr51491-2.c] - Blame information for rev 753

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 "-O2 -fdump-tree-ccp1" } */
3
 
4
int g (int *);
5
 
6
int
7
f (int n)
8
{
9
  int tt = 0;
10
  int t = 4;
11
  {
12
    int a[t
13
          + (tt != 0 ? 6 : 0)
14
         ];
15
    tt = g (a);
16
    {
17
      int b[n];
18
      tt += g (b);
19
      if (n > 20)
20
        tt += 148 * g (b);
21
      tt += b[0];
22
    }
23
    tt += a[0];
24
  }
25
  {
26
    int a[4];
27
    tt += g (a);
28
    tt += a[0];
29
  }
30
  return tt;
31
}
32
 
33
/* { dg-final { scan-tree-dump-times "CLOBBER" 2 "ccp1"} } */
34
/* { dg-final { cleanup-tree-dump "ccp1" } } */

powered by: WebSVN 2.1.0

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