URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* Test whether -fverbose-asm works. */
|
/* Test whether -fverbose-asm works. */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-fverbose-asm" } */
|
/* { dg-options "-fverbose-asm" } */
|
|
|
void foo (int *x)
|
void foo (int *x)
|
{
|
{
|
(*x)++;
|
(*x)++;
|
}
|
}
|
|
|
int bar (int *y)
|
int bar (int *y)
|
{
|
{
|
int a, b;
|
int a, b;
|
b = 10;
|
b = 10;
|
a = 26;
|
a = 26;
|
foo (&a);
|
foo (&a);
|
a += 10;
|
a += 10;
|
foo (&a);
|
foo (&a);
|
*y--;
|
*y--;
|
return b;
|
return b;
|
}
|
}
|
|
|
int
|
int
|
main (int argc, char *argv [])
|
main (int argc, char *argv [])
|
{
|
{
|
bar (&argc);
|
bar (&argc);
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.