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

Subversion Repositories openrisc

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

Compare with Previous | Blame | View Log

/* { dg-do run } */
/* { dg-options "-O1 -ftree-vectorize -fno-tree-pre -fno-tree-loop-im" } */
 
extern void abort (void);
int c[80];
 
__attribute__((noinline)) int
foo (void)
{
  int l = 0;
  int a, b;
 
  for (a = 3; a >= 0; a--)
    for (b = 7; b >= 0; b--)
      l |= c[a+60];
  return l;
}
 
int
main ()
{
  int i;
  for (i = 0; i < 60; i++)
    c[i] = 1;
  for (; i < 64; i++)
    c[i] = 1 << (i - 59);
  if (foo () != 30)
    abort ();
  return 0;
}
 
 

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.