OSDN Git Service

Fix misapplied patch.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / compile / 20031125-1.c
1 short *_offsetTable;
2 /* This tests to make sure PRE splits the entry block ->block 0 edge
3    when there are multiple block 0 predecessors.
4    This is done so that we don't end up with an insertion on the 
5    entry block -> block 0 edge which would require a split at insertion
6    time.  
7    PR 13163.  */
8 void proc4WithoutFDFE(char *dst, const char *src, int next_offs, int bw,
9                 int bh, int pitch)
10 {
11         do {
12                 int i = bw;
13                 int code = *src++;
14                 int x, l;
15                 int length = *src++ + 1;
16
17                 for (l = 0; l < length; l++) {
18                         int x;
19
20                         for (x = 0; x < 4; x++) ;
21                         if (i == 0)
22                                 dst += pitch * 3;
23                 }
24                 char *dst2 = dst + _offsetTable[code] + next_offs;
25
26                 for (x = 0; x < 4; x++) {
27                         int j = 0;
28                         (dst + pitch * x)[j] = (dst2 + pitch * x)[j];
29                 }
30                 dst += pitch * 3;
31         } while (--bh);
32 }
33
34