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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [pr41783.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O3 -fdump-tree-pre" } */
3
int db[100];
4
int a_global_var, fact;
5
int main()
6
{
7
  int i,j=0;
8
  do
9
    {
10
      for (i=0; i<100; ++i)
11
        db[i] = i;
12
      fact = a_global_var * i;
13
    }
14
  while (j++ < 100);
15
}
16
/* We want to have exactly one load (not two) from a_global_var,
17
   and we want that load to be into a PRE temporary.  */
18
/* { dg-final { scan-tree-dump-times "= a_global_var;" 1 "pre" } } */
19
/* { dg-final { scan-tree-dump "pretmp\[^\\n\]* = a_global_var;" "pre" } } */
20
/* { 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.