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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr46771.c] - Blame information for rev 754

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR debug/46771 */
2
/* { dg-do compile } */
3
/* { dg-options "-O -ftree-vectorize -fcompare-debug" } */
4
 
5
unsigned char v[1600];
6
 
7
unsigned char
8
foo (unsigned char x)
9
{
10
  int i;
11
  unsigned char a = x;
12
  unsigned char b = x;
13
  for (i = 0; i < 1600; i++)
14
    a = a < v[i] ? v[i] : a;
15
  for (i = 0; i < 1600; i++)
16
    b = b > v[i] ? v[i] : b;
17
  return a - b;
18
}

powered by: WebSVN 2.1.0

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