testcase for currently broken GVN-PRE
[libfirm] / ir / be / test / fehler141.c
1 /*$ -fgvn-pre -fno-gcse $*/
2 int bl_count[256];
3
4 int test(int max_length, int overflow) {
5     int bits;
6
7     do {
8             bits = max_length-1;
9             while (bl_count[bits] == 0) bits--;
10             bl_count[bits]--;      /* move one leaf down the tree */
11             bl_count[bits+1] += 2; /* move one overflow item as its brother */
12     } while (overflow > 0);
13     return 0;
14 }
15
16 int main() {
17     return 0;
18 }