gcc/testsuite/gcc.dg/graphite/pr23625.c
raw| 1 | /* Test case for PR23625 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2 -ftree-vectorize -ftree-loop-linear" } */ |
| 4 | |
| 5 | typedef long INT32; |
| 6 | void find_best_colors () |
| 7 | { |
| 8 | int ic0, ic1, ic2; |
| 9 | INT32 * bptr; |
| 10 | INT32 dist1; |
| 11 | INT32 dist2; |
| 12 | INT32 xx1; |
| 13 | for (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 |