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-35.c] - Blame information for rev 298

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-lim-details" } */
3
 
4
int x;
5
int a[100];
6
 
7
struct a
8
{
9
  int X;
10
  int Y;
11
};
12
 
13
struct a arr[100];
14
 
15
void test1(int b)
16
{
17
  unsigned i;
18
 
19
  /* And here.  */
20
  for (i = 0; i < 100; i++)
21
    {
22
      arr[b+8].X += i;
23
      arr[b+9].X += i;
24
    }
25
}
26
 
27
void test2(struct a *A, int b)
28
{
29
  unsigned i;
30
 
31
  /* And here as well.  */
32
  for (i = 0; i < 100; i++)
33
    {
34
      A[b].X += i;
35
      A[b+1].Y += i;
36
    }
37
}
38
 
39
void test3(unsigned long b)
40
{
41
  unsigned i;
42
 
43
  /* And here.  */
44
  for (i = 0; i < 100; i++)
45
    {
46
      arr[b+8].X += i;
47
      arr[b+9].X += i;
48
    }
49
}
50
 
51
void test4(struct a *A, unsigned long b)
52
{
53
  unsigned i;
54
 
55
  /* And here as well.  */
56
  for (i = 0; i < 100; i++)
57
    {
58
      A[b].X += i;
59
      A[b+1].Y += i;
60
    }
61
}
62
/* long index not hoisted for avr target PR 36561 */
63
/* { dg-final { scan-tree-dump-times "Executing store motion of" 8 "lim1" { xfail { "avr-*-*" } } } } */
64
/* { dg-final { scan-tree-dump-times "Executing store motion of" 6 "lim1" { target { "avr-*-*" } } } } */
65
/* { dg-final { cleanup-tree-dump "lim\[1-2\]" } } */

powered by: WebSVN 2.1.0

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