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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20010903-1.c] - Blame information for rev 823

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

Line No. Rev Author Line
1 149 jeremybenn
struct A {
2
  long a;
3
};
4
 
5
static inline void foo(struct A *x)
6
{
7
  __asm__ __volatile__("" : "+m"(x->a) : "r"(x) : "memory", "cc");
8
}
9
 
10
static inline void bar(struct A *x)
11
{
12
  foo(x);
13
}
14
 
15
struct B { char buf[640]; struct A a; };
16
struct B b[32];
17
 
18
int baz(void)
19
{
20
  int i;
21
  struct B *j;
22
  for (i = 1; i < 32; i++)
23
    {
24
      j = &b[i];
25
      bar(&j->a);
26
    }
27
  return 0;
28
}

powered by: WebSVN 2.1.0

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