OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.dg/] [tree-prof/] [val-prof-7.c] - Diff between revs 298 and 384

Only display areas with differences | Details | Blame | View Log

Rev 298 Rev 384
/* { dg-options "-O2 -fdump-tree-tree_profile -mtune=core2" } */
/* { dg-options "-O2 -fdump-tree-tree_profile -mtune=core2" } */
/* { dg-skip-if "" { ! { i?86-*-* x86_64-*-* } } { "*" } { "" } } */
/* { dg-skip-if "" { ! { i?86-*-* x86_64-*-* } } { "*" } { "" } } */
 
 
#include <strings.h>
#include <strings.h>
 
 
int foo(int len)
int foo(int len)
{
{
  char array[1000];
  char array[1000];
  bzero(array, len);
  bzero(array, len);
  return 0;
  return 0;
}
}
 
 
int main() {
int main() {
  int i;
  int i;
  for (i = 0; i < 1000; i++)
  for (i = 0; i < 1000; i++)
    {
    {
      if (i > 990)
      if (i > 990)
        foo(16);
        foo(16);
      else
      else
        foo(8);
        foo(8);
    }
    }
  return 0;
  return 0;
}
}
 
 
/* { dg-final-use { scan-tree-dump "Single value 8 stringop transformation on bzero" "tree_profile"} } */
/* { dg-final-use { scan-tree-dump "Single value 8 stringop transformation on bzero" "tree_profile"} } */
/* { dg-final-use { cleanup-tree-dump "tree_profile" } } */
/* { dg-final-use { cleanup-tree-dump "tree_profile" } } */
 
 

powered by: WebSVN 2.1.0

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