OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr51683.c] - Rev 689

Compare with Previous | Blame | View Log

/* PR tree-optimization/51683 */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
 
static inline void *
bar (void *p, void *q, int r)
{
  return __builtin_memcpy (p, q, r);
}
 
void *
foo (void *p)
{
  return bar ((void *) 0x12345000, p, 256);
}
 
/* { dg-final { scan-tree-dump "memcpy" "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.