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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_47/] [or1ksim/] [testbench/] [functest.c] - Blame information for rev 421

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

Line No. Rev Author Line
1 421 markom
#include "support.c"
2
 
3
int gk = 0;
4
int c = 0;
5
int fun1 (int a, int b, int c, int d, int e, int f, int g)
6
{
7
  int j = 0;
8
  volatile char x[50];
9
  &x;
10
 
11
  while(j < 2) {
12
    a++;
13
    j++;
14
  }
15
 
16
  return a;
17
}
18
 
19
int main(void)
20
{
21
  int i, j, k;
22
  i = j = k = 0;
23
 
24
  while (c++ < 10) {
25
    j = fun1(gk, k + 1, k + 2, k + 3, k + 4, k + 5, k + 6);
26
    printf ("%i\n", gk);
27
    if(j > 40)
28
      gk = j - 20;
29
    else
30
      gk = j;
31
  }
32
  if (gk == 18)
33
    report(0xdeaddead);
34
  return (gk != 18);
35
}
36
 

powered by: WebSVN 2.1.0

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