URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* Test for bogus -Wsign-compare warnings that appeared when not
|
/* Test for bogus -Wsign-compare warnings that appeared when not
|
folding operands before warning. */
|
folding operands before warning. */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-Wsign-compare" } */
|
/* { dg-options "-Wsign-compare" } */
|
|
|
int
|
int
|
test_compare (int a, unsigned b)
|
test_compare (int a, unsigned b)
|
{
|
{
|
return (b > 8 * (a ? 4 : 8));
|
return (b > 8 * (a ? 4 : 8));
|
}
|
}
|
|
|
unsigned int
|
unsigned int
|
test_conditional (int a, unsigned b, int c)
|
test_conditional (int a, unsigned b, int c)
|
{
|
{
|
return (c ? b : 8 * (a ? 4 : 8));
|
return (c ? b : 8 * (a ? 4 : 8));
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.