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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20030125-1.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 688 jeremybenn
 int count;
2
 
3
 int func(int *valp) {
4
   int val, locked = 0;
5
 
6
   while ((val = *valp) != 0) {
7
     if (count) {
8
       if (count)
9
         locked = 1;
10
       else
11
         locked = 1;
12
 
13
     if (!locked)
14
       continue;
15
     }
16
 
17
     if (!count)
18
       count--;
19
 
20
     break;
21
   }
22
 
23
   return val;
24
 }

powered by: WebSVN 2.1.0

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