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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ssa-pre-3.c] - Blame information for rev 867

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
3
unsigned foo1 (unsigned a, unsigned b)
4
{
5
  unsigned i, j, k;
6
  for (i = 0; i != a; i++)
7
    {
8
      j += 4*b;
9
      k += 4*a;
10
    }
11
  return j + k;
12
}
13
/* We should eliminate both 4*b and 4*a from the main body of the loop */
14
/* { dg-final { scan-tree-dump-times "Eliminated: 2" 1 "pre"} } */
15
/* { dg-final { cleanup-tree-dump "pre" } } */

powered by: WebSVN 2.1.0

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