2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr49860.c
blobfaa5f1fd7e366c49a5d47c4678889d3a60e250b2
1 /* { dg-do assemble } */
2 /* { dg-options "-O3 -funroll-all-loops" } */
4 extern char inbuf[];
5 extern char outbuf[];
6 extern unsigned insize;
7 extern unsigned inptr;
8 static int max_len;
9 static int peek_bits;
10 void build_tree() {
11 int len;
12 char *prefixp;
13 max_len = inbuf[inptr++];
14 peek_bits = ((max_len) <= (12) ? (max_len) : (12));
15 prefixp = &outbuf[1<<peek_bits];
16 for (len = 1;
17 len <= peek_bits;
18 len++) {
20 while (prefixp > outbuf) *--prefixp = 0;