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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [inline-6.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-Os -fdump-tree-optimized" } */
3
struct a {int a,b,c,d,e,f,g,h,i,j;};
4
 
5
do_inc (struct a *a)
6
{
7
  a->a=1;
8
  a->b=2;
9
  a->c=3;
10
  a->e=4;
11
  a->f=5;
12
  a->g=5;
13
  a->h=5;
14
  a->i=5;
15
  a->j=5;
16
}
17
 
18
test(struct a *a)
19
{
20
  do_inc (a);
21
  do_something (a);
22
  do_inc (a);
23
  do_something (a);
24
  do_inc (a);
25
  do_something (a);
26
  do_inc (a);
27
  do_something (a);
28
  do_inc (a);
29
  do_something (a);
30
  do_inc (a);
31
  do_something (a);
32
  do_inc (a);
33
  do_something (a);
34
  do_inc (a);
35
  do_something (a);
36
  do_inc (a);
37
  do_something (a);
38
}
39
/* { dg-final { scan-tree-dump-times "do_inc" 12 "optimized" } } */
40
/* { 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.