URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ssa-ccp-27.c] - Rev 298
Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-ccp1" } */ #include <string.h> char c[10]; void f1 () { const char *p = "123456"; memcpy (c, p, 6); } void f2 () { const char *p = "12345678"; p += 2; memcpy (c, p, 6); } /* { dg-final { scan-tree-dump-times "memcpy\[^\n\]*123456" 2 "ccp1" } } */ /* { dg-final { cleanup-tree-dump "ccp1" } } */