URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
/* PR c/10178. The following code would ICE because we didn't check for
|
/* PR c/10178. The following code would ICE because we didn't check for
|
overflow when computing the range of the switch-statment, and therefore
|
overflow when computing the range of the switch-statment, and therefore
|
decided it could be implemented using bit-tests. */
|
decided it could be implemented using bit-tests. */
|
|
|
int
|
int
|
banana(long citron)
|
banana(long citron)
|
{
|
{
|
switch (citron) {
|
switch (citron) {
|
case 0x80000000:
|
case 0x80000000:
|
case 0x40000:
|
case 0x40000:
|
case 0x40001:
|
case 0x40001:
|
return 1;
|
return 1;
|
break;
|
break;
|
}
|
}
|
return 0;
|
return 0;
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.