URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [forwprop-11.c] - Rev 689
Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-require-effective-target int32plus } */ /* { dg-options "-O -fdump-tree-forwprop1" } */ int f(int *p, int n) { int (*a)[n] = (int (*)[n])p; int *q = &(*a)[0]; return q[1]; } int g(int *p, int n) { int (*a)[n] = (int (*)[n])p; int *q = &(*a)[2]; return q[-1]; } /* { dg-final { scan-tree-dump-times "= MEM\\\[\\\(int \\\*\\\)a_.. \\\+ 4B\\\];" 2 "forwprop1" } } */ /* { dg-final { cleanup-tree-dump "forwprop1" } } */