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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ldist-15.c] - Rev 749

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

/* { dg-do compile } */
/* { dg-options "-O3 -fdump-tree-ldist-details" } */
 
int x[1000];
 
void foo (int n)
{
  int i;
 
  for (i = 0; i < n; ++i)
    {
      x[2*i] = 0;
      x[2*i + 1] = 1;
    }
}
 
/* We should not apply loop distribution as it is not beneficial from
   a data locality point of view.  Also it is not possible to generate
   a memset (0) as the write has a stride of 2.  */
 
/* { dg-final { scan-tree-dump-not "distributed: split to" "ldist" } } */
/* { dg-final { scan-tree-dump-not "__builtin_memset" "ldist" } } */
/* { dg-final { cleanup-tree-dump "ldist" } } */
 

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.