* gcc.target/i386/mpx/hard-reg-1-nov.c (mpx_test): Use "esp"
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 991216-1.c
blobbfedefb1ec31a31e6670aafa1529c26ea85de24a
1 #define VALUE 0x123456789abcdefLL
2 #define AFTER 0x55
4 void
5 test1 (int a, long long value, int after)
7 if (a != 1
8 || value != VALUE
9 || after != AFTER)
10 abort ();
13 void
14 test2 (int a, int b, long long value, int after)
16 if (a != 1
17 || b != 2
18 || value != VALUE
19 || after != AFTER)
20 abort ();
23 void
24 test3 (int a, int b, int c, long long value, int after)
26 if (a != 1
27 || b != 2
28 || c != 3
29 || value != VALUE
30 || after != AFTER)
31 abort ();
34 void
35 test4 (int a, int b, int c, int d, long long value, int after)
37 if (a != 1
38 || b != 2
39 || c != 3
40 || d != 4
41 || value != VALUE
42 || after != AFTER)
43 abort ();
46 void
47 test5 (int a, int b, int c, int d, int e, long long value, int after)
49 if (a != 1
50 || b != 2
51 || c != 3
52 || d != 4
53 || e != 5
54 || value != VALUE
55 || after != AFTER)
56 abort ();
59 void
60 test6 (int a, int b, int c, int d, int e, int f, long long value, int after)
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 ();
73 void
74 test7 (int a, int b, int c, int d, int e, int f, int g, long long value, int after)
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 ();
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)
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 ();
105 main ()
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);