URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
/* Check the _MIPSEB and _MIPSEL macros are accurate. */
|
/* Check the _MIPSEB and _MIPSEL macros are accurate. */
|
/* { dg-do run } */
|
/* { dg-do run } */
|
extern void abort (void);
|
extern void abort (void);
|
extern void exit (int);
|
extern void exit (int);
|
|
|
short foo = 1;
|
short foo = 1;
|
int main ()
|
int main ()
|
{
|
{
|
char *p = (char *) &foo;
|
char *p = (char *) &foo;
|
|
|
#ifdef _MIPSEB
|
#ifdef _MIPSEB
|
if (p[0] != 0 || p[1] != 1)
|
if (p[0] != 0 || p[1] != 1)
|
#else
|
#else
|
if (p[0] != 1 || p[1] != 0)
|
if (p[0] != 1 || p[1] != 0)
|
#endif
|
#endif
|
abort ();
|
abort ();
|
exit (0);
|
exit (0);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.