URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 384 |
/* This testcase ICEd on IA-32 because the backend was inconsistent whether
|
/* This testcase ICEd on IA-32 because the backend was inconsistent whether
|
to allow addends for @dtpoff relocs or not. */
|
to allow addends for @dtpoff relocs or not. */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-require-effective-target fpic } */
|
/* { dg-require-effective-target fpic } */
|
/* { dg-options "-O2 -fpic" } */
|
/* { dg-options "-O2 -fpic" } */
|
/* { dg-require-effective-target tls } */
|
/* { dg-require-effective-target tls } */
|
|
|
struct S {
|
struct S {
|
int s0, s1, s2, s3;
|
int s0, s1, s2, s3;
|
};
|
};
|
static __thread struct S x;
|
static __thread struct S x;
|
extern void abort (void);
|
extern void abort (void);
|
extern void exit (int);
|
extern void exit (int);
|
|
|
void
|
void
|
foo (struct S *s)
|
foo (struct S *s)
|
{
|
{
|
s->s2 = 231;
|
s->s2 = 231;
|
}
|
}
|
|
|
void
|
void
|
bar (void)
|
bar (void)
|
{
|
{
|
if (x.s0 == 231 || x.s2 != 231)
|
if (x.s0 == 231 || x.s2 != 231)
|
abort ();
|
abort ();
|
}
|
}
|
|
|
int
|
int
|
main ()
|
main ()
|
{
|
{
|
foo (&x);
|
foo (&x);
|
bar ();
|
bar ();
|
exit (0);
|
exit (0);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.