* gcc.dg/torture/stackalign/builtin-apply-2.c: Fix skip-if syntax.
[official-gcc.git] / gcc / testsuite / gcc.dg / graphite / pr37943.c
blob7a42cc119abf9ed593d834235fd68710f9961030
1 /* { dg-options "-O3 -fgraphite-identity -fdump-tree-graphite-all" } */
3 typedef struct
5 int mode,state,num,state_out;
6 unsigned char* bits;
7 char *out;
8 }test;
9 unsigned char copy( test* s )
11 while(1)
13 if (s->mode == 0) break;
14 if (s->state_out >= s->num) break;
15 *(s->out) = s->bits[s->state_out];
16 if (s->mode == 0) s->mode++;
19 unsigned char compress(test *in)
21 unsigned char p_in, p_out;
22 while(1)
24 if (in->state == 1)
26 p_out |= copy(in);
27 if (in->state_out < in->num) break;
30 return p_in || p_out;