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 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2 -fdump-tree-vrp1" } */
|
/* { dg-options "-O2 -fdump-tree-vrp1" } */
|
|
|
int f(int a) {
|
int f(int a) {
|
switch (a & 1) {
|
switch (a & 1) {
|
case 0:
|
case 0:
|
case 1: return 3;
|
case 1: return 3;
|
case 2: return 5;
|
case 2: return 5;
|
case 3: return 7;
|
case 3: return 7;
|
case 4: return 11;
|
case 4: return 11;
|
case 5: return 13;
|
case 5: return 13;
|
case 6: return 17;
|
case 6: return 17;
|
case 7: return 19;
|
case 7: return 19;
|
}
|
}
|
}
|
}
|
|
|
/* { dg-final { scan-tree-dump "return 3;" "vrp1" } } */
|
/* { dg-final { scan-tree-dump "return 3;" "vrp1" } } */
|
/* { dg-final { cleanup-tree-dump "vrp1" } } */
|
/* { dg-final { cleanup-tree-dump "vrp1" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.