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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20080806-1.c] - Blame information for rev 859

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

Line No. Rev Author Line
1 297 jeremybenn
/* This used to ICE on s390x due to a reload bug.  */
2
 
3
#if defined(STACK_SIZE) && (STACK_SIZE < 65536)
4
  #define BYTES 64
5
#else
6
  #define BYTES 65400
7
#endif
8
 
9
int gl2;
10
typedef __SIZE_TYPE__ size_t;
11
 
12
extern void *memcpy (void *dest, const void *src, size_t n);
13
 
14
void
15
f1 ()
16
{
17
  int i2;
18
  unsigned char bf[BYTES];
19
 
20
  for (i2 = 0; i2 < 3; i2++)
21
    {
22
      unsigned char *p2 = bf;
23
      unsigned char *p3 = ((void *) 0);
24
      unsigned short ctf2;
25
 
26
      p2 += sizeof (short);
27
 
28
      for (ctf2 = 0; ctf2 < 3; ctf2++)
29
        {
30
          if (ctf2 == 1)
31
            {
32
              unsigned short of = p2 - bf - 6;
33
              unsigned short *ofp = (unsigned short *) &of;
34
              memcpy (p3, ofp, sizeof (short));
35
            }
36
 
37
          if (gl2 == 1)
38
            p2 += 3;
39
        }
40
    }
41
}

powered by: WebSVN 2.1.0

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