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