blob: e4413027ceeac3a371eaaaac894e550a72da06bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* PR debug/46771 */
/* { dg-do compile } */
/* { dg-options "-O -ftree-vectorize -fcompare-debug" } */
/* { dg-xfail-if "" { powerpc-ibm-aix* } { "*" } { "" } } */
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;
}
|