URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* { dg-do compile { target lp64 } } */
|
/* { dg-do compile { target lp64 } } */
|
/* { dg-options "-O1 -fPIC" } */
|
/* { dg-options "-O1 -fPIC" } */
|
|
|
/* PR target/29319 */
|
/* PR target/29319 */
|
|
|
extern void abort(void);
|
extern void abort(void);
|
static char l_info[100];
|
static char l_info[100];
|
|
|
void
|
void
|
bug1 (unsigned long tag)
|
bug1 (unsigned long tag)
|
{
|
{
|
char *info = l_info;
|
char *info = l_info;
|
info[tag - 0x100000000 + 1] = 1;
|
info[tag - 0x100000000 + 1] = 1;
|
}
|
}
|
|
|
void
|
void
|
bug2 (unsigned long tag)
|
bug2 (unsigned long tag)
|
{
|
{
|
char *info = l_info;
|
char *info = l_info;
|
info[tag - 0x700000000 + 2] = 2;
|
info[tag - 0x700000000 + 2] = 2;
|
}
|
}
|
|
|
void
|
void
|
bug3 (unsigned long tag)
|
bug3 (unsigned long tag)
|
{
|
{
|
char *info = l_info;
|
char *info = l_info;
|
info[tag - 0x100000000 + 1] = 3;
|
info[tag - 0x100000000 + 1] = 3;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.