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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [loop-9.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* Without TARGET_MEM_REFs, dom creates code like
2
 
3
   i1 = 4 * i;
4
   *(p + i1) = i;
5
   *(p + i1 + 4) = i
6
 
7
   causing us to have unnecessary multiplication by 4 in the
8
   result.  */
9
 
10
/* { dg-do compile } */
11
/* { dg-options "-O1" } */
12
 
13
void foo (int *p)
14
{
15
  int i;
16
 
17
  for (i = 0; i < 100; i++)
18
    {
19
      p[i] = i;
20
      p[i + 1] = i;
21
    }
22
}
23
 
24
/* { dg-final { scan-assembler-times "lea\\t" 0 { target i?86-*-* x86_64-*-* } } } */

powered by: WebSVN 2.1.0

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