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

Subversion Repositories openrisc

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

Compare with Previous | Blame | View Log

/* PR debug/46771 */
/* { dg-do compile } */
/* { dg-options "-O -ftree-vectorize -fcompare-debug" } */
 
unsigned char v[1600];
 
unsigned char
foo (unsigned char x)
{
  int i;
  unsigned char a = x;
  unsigned char b = x;
  for (i = 0; i < 1600; i++)
    a = a < v[i] ? v[i] : a;
  for (i = 0; i < 1600; i++)
    b = b > v[i] ? v[i] : b;
  return a - b;
}
 

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.