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/] [tree-ssa/] [loop-16.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* A test for # of iterations estimation.  We know that the loop is executed
2
   at most 100 times, thus the (32-bit) induction variables do not overflow,
3
   and we may use 64-bit variable to represent them.  */
4
 
5
/* { dg-options "-O2 -fdump-tree-optimized" } */
6
/* { dg-do compile { target x86_64-*-* } } */
7
 
8
unsigned a[100];
9
 
10
void foo(unsigned n)
11
{
12
  unsigned i;
13
 
14
  for (i = 0; i < n; i++)
15
    a[i] = 4 * i;
16
}
17
 
18
/* Check that the memory reference was replaced with MEM, and that there is no
19
   multiplication.  */
20
 
21
/* { dg-final { scan-tree-dump-times "MEM" 1 "optimized" } } */
22
/* { dg-final { scan-tree-dump-times "\[^\\n\\r\]*= \\* " 0 "optimized" } } */
23
 
24
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

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