OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20031125-1.c] - Blame information for rev 154

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.