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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [980526-3.c] - Blame information for rev 688

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
int compare(x, y)
2
unsigned int x;
3
unsigned int y;
4
{
5
   if (x==y)
6
     return 0;
7
   else
8
     return 1;
9
}
10
 
11
main()
12
{
13
 unsigned int i, j, k, l;
14
 i = 5; j = 2; k=0; l=2;
15
 if (compare(5%(~(unsigned) 2), i%~j)
16
     || compare(0, k%~l))
17
    abort();
18
 else
19
    exit(0);
20
}

powered by: WebSVN 2.1.0

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