URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 297 |
Rev 338 |
/* PR tree-optimization/43560 */
|
/* PR tree-optimization/43560 */
|
|
|
struct S
|
struct S
|
{
|
{
|
int a, b;
|
int a, b;
|
char c[10];
|
char c[10];
|
};
|
};
|
|
|
__attribute__ ((noinline)) void
|
__attribute__ ((noinline)) void
|
test (struct S *x)
|
test (struct S *x)
|
{
|
{
|
while (x->b > 1 && x->c[x->b - 1] == '/')
|
while (x->b > 1 && x->c[x->b - 1] == '/')
|
{
|
{
|
x->b--;
|
x->b--;
|
x->c[x->b] = '\0';
|
x->c[x->b] = '\0';
|
}
|
}
|
}
|
}
|
|
|
const struct S s = { 0, 0, "" };
|
const struct S s = { 0, 0, "" };
|
|
|
int
|
int
|
main ()
|
main ()
|
{
|
{
|
struct S *p;
|
struct S *p;
|
asm ("" : "=r" (p) : "0" (&s));
|
asm ("" : "=r" (p) : "0" (&s));
|
test (p);
|
test (p);
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.