URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 297 |
Rev 338 |
/* The bit-field below would have a problem if __INT_MAX__ is too
|
/* The bit-field below would have a problem if __INT_MAX__ is too
|
small. */
|
small. */
|
#if __INT_MAX__ < 2147483647
|
#if __INT_MAX__ < 2147483647
|
int
|
int
|
main (void)
|
main (void)
|
{
|
{
|
exit (0);
|
exit (0);
|
}
|
}
|
#else
|
#else
|
main ()
|
main ()
|
{
|
{
|
struct
|
struct
|
{
|
{
|
signed int bf0:17;
|
signed int bf0:17;
|
signed int bf1:7;
|
signed int bf1:7;
|
} bf;
|
} bf;
|
|
|
bf.bf1 = 7;
|
bf.bf1 = 7;
|
f (bf.bf1);
|
f (bf.bf1);
|
exit (0);
|
exit (0);
|
}
|
}
|
|
|
f (x)
|
f (x)
|
int x;
|
int x;
|
{
|
{
|
if (x != 7)
|
if (x != 7)
|
abort ();
|
abort ();
|
}
|
}
|
#endif
|
#endif
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.