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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr51235.c] - Blame information for rev 691

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -ftree-vectorize -mxop -mavx2" } */
3
 
4
void *foo (int count, void **list)
5
{
6
  void *minaddr = list[0];
7
  int i;
8
 
9
  for (i = 1; i < count; i++)
10
    {
11
      void *addr = list[i];
12
      if (addr < minaddr)
13
        minaddr = addr;
14
    }
15
 
16
  return minaddr;
17
}

powered by: WebSVN 2.1.0

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