Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / pr46771.c
blobb44dfd466ab66629c6ba6a71739edf5d28777310
1 /* PR debug/46771 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -ftree-vectorize -fcompare-debug" } */
5 unsigned char v[1600];
7 unsigned char
8 foo (unsigned char x)
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;