1/* Test case for PR23625 */
2/* { dg-do compile } */
3/* { dg-options "-O2 -ftree-vectorize -ftree-loop-linear" } */
4
5typedef long INT32;
6void find_best_colors ()
7{
8int ic0, ic1, ic2;
9INT32 * bptr;
10INT32 dist1;
11INT32 dist2;
12INT32 xx1;
13for (ic0 = (1<<(5 -3))-1;ic0 >= 0;ic0--)
14{
15  for (ic1 = (1<<(6 -3))-1;ic1 >= 0;ic1--)
16  {
17    dist2 = dist1;
18     for (ic2 = (1<<(5 -3))-1;ic2 >= 0;ic2--)
19     {
20        *bptr = dist2;
21        bptr++;
22     }
23     dist1 += xx1;
24  }
25}
26}
27
28