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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [tree-prof/] [update-loopch.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-options "-O2 -fdump-tree-tree_profile-blocks -fdump-tree-optimized-blocks" } */
2
int max = 33333;
3
int a[8];
4
int
5
main ()
6
{
7
  int i;
8
  for (i = 0; i < max; i++)
9
    {
10
      a[i % 8]++;
11
    }
12
  return 0;
13
}
14
/* Loop header copying will peel away the initial conditional, so the loop body
15
   is once reached directly from entry point of function, rest via loopback
16
   edge.  */
17
/* { dg-final-use { scan-tree-dump "count:33333" "tree_profile"} } */
18
/* { dg-final-use { scan-tree-dump "count:33332" "optimized"} } */
19
/* { dg-final-use { scan-tree-dump-not "Invalid sum" "optimized"} } */
20
/* { dg-final-use { cleanup-tree-dump "tree_profile" } } */
21
/* { dg-final-use { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

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