URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 297 |
Rev 338 |
/* This used to ICE on s390x due to a reload bug. */
|
/* This used to ICE on s390x due to a reload bug. */
|
|
|
#if defined(STACK_SIZE) && (STACK_SIZE < 65536)
|
#if defined(STACK_SIZE) && (STACK_SIZE < 65536)
|
#define BYTES 64
|
#define BYTES 64
|
#else
|
#else
|
#define BYTES 65400
|
#define BYTES 65400
|
#endif
|
#endif
|
|
|
int gl2;
|
int gl2;
|
typedef __SIZE_TYPE__ size_t;
|
typedef __SIZE_TYPE__ size_t;
|
|
|
extern void *memcpy (void *dest, const void *src, size_t n);
|
extern void *memcpy (void *dest, const void *src, size_t n);
|
|
|
void
|
void
|
f1 ()
|
f1 ()
|
{
|
{
|
int i2;
|
int i2;
|
unsigned char bf[BYTES];
|
unsigned char bf[BYTES];
|
|
|
for (i2 = 0; i2 < 3; i2++)
|
for (i2 = 0; i2 < 3; i2++)
|
{
|
{
|
unsigned char *p2 = bf;
|
unsigned char *p2 = bf;
|
unsigned char *p3 = ((void *) 0);
|
unsigned char *p3 = ((void *) 0);
|
unsigned short ctf2;
|
unsigned short ctf2;
|
|
|
p2 += sizeof (short);
|
p2 += sizeof (short);
|
|
|
for (ctf2 = 0; ctf2 < 3; ctf2++)
|
for (ctf2 = 0; ctf2 < 3; ctf2++)
|
{
|
{
|
if (ctf2 == 1)
|
if (ctf2 == 1)
|
{
|
{
|
unsigned short of = p2 - bf - 6;
|
unsigned short of = p2 - bf - 6;
|
unsigned short *ofp = (unsigned short *) &of;
|
unsigned short *ofp = (unsigned short *) &of;
|
memcpy (p3, ofp, sizeof (short));
|
memcpy (p3, ofp, sizeof (short));
|
}
|
}
|
|
|
if (gl2 == 1)
|
if (gl2 == 1)
|
p2 += 3;
|
p2 += 3;
|
}
|
}
|
}
|
}
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.