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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [991216-1.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 688 jeremybenn
#define VALUE 0x123456789abcdefLL
2
#define AFTER 0x55
3
 
4
void
5
test1 (int a, long long value, int after)
6
{
7
  if (a != 1
8
      || value != VALUE
9
      || after != AFTER)
10
    abort ();
11
}
12
 
13
void
14
test2 (int a, int b, long long value, int after)
15
{
16
  if (a != 1
17
      || b != 2
18
      || value != VALUE
19
      || after != AFTER)
20
    abort ();
21
}
22
 
23
void
24
test3 (int a, int b, int c, long long value, int after)
25
{
26
  if (a != 1
27
      || b != 2
28
      || c != 3
29
      || value != VALUE
30
      || after != AFTER)
31
    abort ();
32
}
33
 
34
void
35
test4 (int a, int b, int c, int d, long long value, int after)
36
{
37
  if (a != 1
38
      || b != 2
39
      || c != 3
40
      || d != 4
41
      || value != VALUE
42
      || after != AFTER)
43
    abort ();
44
}
45
 
46
void
47
test5 (int a, int b, int c, int d, int e, long long value, int after)
48
{
49
  if (a != 1
50
      || b != 2
51
      || c != 3
52
      || d != 4
53
      || e != 5
54
      || value != VALUE
55
      || after != AFTER)
56
    abort ();
57
}
58
 
59
void
60
test6 (int a, int b, int c, int d, int e, int f, long long value, int after)
61
{
62
  if (a != 1
63
      || b != 2
64
      || c != 3
65
      || d != 4
66
      || e != 5
67
      || f != 6
68
      || value != VALUE
69
      || after != AFTER)
70
    abort ();
71
}
72
 
73
void
74
test7 (int a, int b, int c, int d, int e, int f, int g, long long value, int after)
75
{
76
  if (a != 1
77
      || b != 2
78
      || c != 3
79
      || d != 4
80
      || e != 5
81
      || f != 6
82
      || g != 7
83
      || value != VALUE
84
      || after != AFTER)
85
    abort ();
86
}
87
 
88
void
89
test8 (int a, int b, int c, int d, int e, int f, int g, int h, long long value, int after)
90
{
91
  if (a != 1
92
      || b != 2
93
      || c != 3
94
      || d != 4
95
      || e != 5
96
      || f != 6
97
      || g != 7
98
      || h != 8
99
      || value != VALUE
100
      || after != AFTER)
101
    abort ();
102
}
103
 
104
int
105
main ()
106
{
107
  test1 (1, VALUE, AFTER);
108
  test2 (1, 2, VALUE, AFTER);
109
  test3 (1, 2, 3, VALUE, AFTER);
110
  test4 (1, 2, 3, 4, VALUE, AFTER);
111
  test5 (1, 2, 3, 4, 5, VALUE, AFTER);
112
  test6 (1, 2, 3, 4, 5, 6, VALUE, AFTER);
113
  test7 (1, 2, 3, 4, 5, 6, 7, VALUE, AFTER);
114
  test8 (1, 2, 3, 4, 5, 6, 7, 8, VALUE, AFTER);
115
  exit (0);
116
}

powered by: WebSVN 2.1.0

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