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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr46647.c] - Rev 774

Go to most recent revision | Compare with Previous | Blame | View Log

/* PR middle-end/46647 */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
 
int a;
 
int
func1 (void)
{
  __builtin_memset (&a, -1, sizeof (a));
  return 0;
}
 
int
func2 (void)
{
  __builtin_memset (&a, 123, sizeof (a));
  return 0;
}
 
int
func3 (void)
{
  __builtin_memset (&a, 0, sizeof (a));
  return 0;
}
 
/* { dg-final { scan-tree-dump-not "memset" "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
 

Go to most recent revision | 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.