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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [920710-2.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 688 jeremybenn
union u
2
{
3
  struct {unsigned h, l;} i;
4
  double d;
5
};
6
 
7
foo (union u x)
8
{
9
  while (x.i.h++)
10
    {
11
      while (x.i.l-- > 0)
12
        ;
13
      while (x.d++ > 0)
14
        ;
15
    }
16
}
17
 
18
union n
19
{
20
  long long unsigned i;
21
  double d;
22
};
23
 
24
bar (union n x)
25
{
26
  int i;
27
  for (i = 0; i < 100; i++)
28
    {
29
      while (--x.i > 0)
30
        ;
31
      while (++x.d > 0)
32
        ;
33
    }
34
  return x.i;
35
}
36
 

powered by: WebSVN 2.1.0

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