URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 816 |
Rev 826 |
/* Verify that points-to information is handled properly for PTR + OFFSET
|
/* Verify that points-to information is handled properly for PTR + OFFSET
|
pointer arithmetics. */
|
pointer arithmetics. */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2 -fdump-tree-alias-vops" } */
|
/* { dg-options "-O2 -fdump-tree-alias-vops" } */
|
|
|
char buf[4], *q;
|
char buf[4], *q;
|
int foo (int i)
|
int foo (int i)
|
{
|
{
|
char c, *p;
|
char c, *p;
|
q = &c;
|
q = &c;
|
p = buf;
|
p = buf;
|
if (i)
|
if (i)
|
p = p + 3;
|
p = p + 3;
|
else
|
else
|
p = p + 2;
|
p = p + 2;
|
*p = 6;
|
*p = 6;
|
c = 8;
|
c = 8;
|
return *p;
|
return *p;
|
}
|
}
|
|
|
/* { dg-final { scan-tree-dump-not "VUSE <c" "alias" } } */
|
/* { dg-final { scan-tree-dump-not "VUSE <c" "alias" } } */
|
/* { dg-final { cleanup-tree-dump "alias" } } */
|
/* { dg-final { cleanup-tree-dump "alias" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.