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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr33961.c] - Blame information for rev 750

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* PR tree-optimization/33961 */
2
/* { dg-do run } */
3
/* { dg-options "-O2 -ftree-cselim" } */
4
 
5
void decode(char *d, int len);
6
 
7
void decode(char *d, int len) {
8
        int i = len - 1;
9
        while(i >= 0) {
10
                d[i];
11
                if(d[i] == 0)
12
                        d[i]=' ';
13
                if(d[i] == 1)
14
                        d[i]='x';
15
                i--;
16
        }
17
}
18
 
19
int main(int argc, char **argv)
20
{
21
        decode("this bug is really weird", 24);
22
        return 0;
23
}

powered by: WebSVN 2.1.0

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