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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [unsorted/] [cc.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
cc8 (a, b)
2
{
3
  if (a < 0)
4
    goto L1;
5
    if (a == 0)
6
      goto L2;
7
 L1:b++;
8
 L2:b++;
9
  return b;
10
}
11
 
12
cc7 (a)
13
     long long a;
14
{
15
  if (a < 0)
16
    return 1;
17
  else
18
    return 0;
19
}
20
 
21
cc6 (float a, double p)
22
{
23
  p = a;
24
  if (p < 0)
25
    return p;
26
  else
27
    return p + 1;
28
}
29
 
30
cc5 (p, a)
31
     char *p;
32
     char a;
33
{
34
  p[2] = a;
35
  if (a)
36
    return 0;
37
  else
38
    return 1;
39
}
40
 
41
 
42
cc4 (a, b, p)
43
     int a, b;
44
     int *p;
45
{
46
  a = (int short)b;
47
  *p = a;
48
  if ((int) a < 0)
49
    return 0;
50
  else
51
    return 1;
52
}
53
 
54
 
55
cc1 (a, b)
56
{
57
  int x = 0;
58
 
59
  if ((int) a < (int) b)
60
    {
61
      if ((unsigned) a < (unsigned) b)
62
        x++;
63
      x++;
64
    }
65
 
66
  return x;
67
}
68
 
69
cc2 (a, b)
70
{
71
  int x = 0;
72
 
73
  if ((int) a <= (int) b)
74
    {
75
      if ((int) a < (int) b)
76
        x++;
77
      x++;
78
    }
79
 
80
  return x;
81
}
82
 
83
cc3 (a, b)
84
{
85
  int x = 0;
86
 
87
  a += b;
88
  if ((unsigned) a > 0)
89
    {
90
      if (a == 0)
91
        x++;
92
      x++;
93
    }
94
 
95
  return x;
96
}

powered by: WebSVN 2.1.0

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