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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr42685.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -funroll-loops -fcompare-debug" } */
3
 
4
struct S {
5
 int i;
6
};
7
 
8
extern void baz(int);
9
 
10
static inline void bar(struct S *s)
11
{
12
  baz(s->i);
13
}
14
 
15
void foo(int *w, int cond, struct S *s)
16
{
17
  int i, n = 0;
18
  while (*w++ != 0) n++;
19
  for (i = 0; i < n; i++)
20
    if (cond == 0)
21
      bar(s + i);
22
}

powered by: WebSVN 2.1.0

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