OSDN Git Service

2012-01-03 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr47881.c
1 /* PR debug/47881 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -fcompare-debug -fno-dce -funroll-loops -fno-web" } */
4
5 extern int data[];
6
7 int
8 foo (int *t, int *f, int n)
9 {
10   int i = 0, a, b, c, d;
11   while (data[*f] && n)
12     n--;
13   for (; i < n; i += 4)
14     {
15       a = data[*(f++) & 0x7f];
16       c = data[*(f++) & 0x7f];
17       c = data[*(f++) & 0x7f];
18       d = data[*(f++) & 0x7f];
19       if ((a & 0x80) || (b & 0x80) || (c & 0x80) || (d & 0x80))
20         return 1;
21       *(t++) = 16;
22     }
23   return 0;
24 }