URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ssa-ccp-16.c] - Rev 816
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-ccp1" } */ static const int x; int test1 (void) { char *p = "hello"; int i = x; i = i + 5; return p[i]; } int test2 (void) { int i = x; i = i + 5; return "hello"[i]; } /* { dg-final { scan-tree-dump-times "return 0;" 2 "ccp1" } } */ /* { dg-final { cleanup-tree-dump "ccp1" } } */
Go to most recent revision | Compare with Previous | Blame | View Log