URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ssa-ccp-27.c] - Rev 300
Go to most recent revision | 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" } } */
Go to most recent revision | Compare with Previous | Blame | View Log