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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [991216-4.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Test against a problem with loop reversal.  */
2
static void bug(int size, int tries)
3
{
4
    int i;
5
    int num = 0;
6
    while (num < size)
7
    {
8
        for (i = 1; i < tries; i++) num++;
9
    }
10
}
11
 
12
int main()
13
{
14
    bug(5, 10);
15
    exit (0);
16
}

powered by: WebSVN 2.1.0

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