Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 20031125-1.c
blobd3e92679c8b35b4678805e31e8ab0a3d46ba15aa
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)
11 do {
12 int i = bw;
13 int code = *src++;
14 int x, l;
15 int length = *src++ + 1;
17 for (l = 0; l < length; l++) {
18 int x;
20 for (x = 0; x < 4; x++) ;
21 if (i == 0)
22 dst += pitch * 3;
24 char *dst2 = dst + _offsetTable[code] + next_offs;
26 for (x = 0; x < 4; x++) {
27 int j = 0;
28 (dst + pitch * x)[j] = (dst2 + pitch * x)[j];
30 dst += pitch * 3;
31 } while (--bh);