annotate test/tmp1.c @ 236:7353a818858c

ia32 code creg fix done
author kono
date Thu, 29 Apr 2004 23:53:31 +0900
parents 096559f07a70
children c55363eff5e5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
1
d35df41eac69 Initial revision
kono
parents:
diff changeset
2 main(ac,av)
d35df41eac69 Initial revision
kono
parents:
diff changeset
3 int ac;
d35df41eac69 Initial revision
kono
parents:
diff changeset
4 char *av[];
d35df41eac69 Initial revision
kono
parents:
diff changeset
5 {
d35df41eac69 Initial revision
kono
parents:
diff changeset
6 if (ac>1)
d35df41eac69 Initial revision
kono
parents:
diff changeset
7 goto code1(av,return);
172
096559f07a70 some check
kono
parents: 0
diff changeset
8 goto code1(ac,av,exit1);
096559f07a70 some check
kono
parents: 0
diff changeset
9 }
096559f07a70 some check
kono
parents: 0
diff changeset
10
096559f07a70 some check
kono
parents: 0
diff changeset
11 code exit1(int ac,int av)
096559f07a70 some check
kono
parents: 0
diff changeset
12 {
096559f07a70 some check
kono
parents: 0
diff changeset
13 exit(0);
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
14 }
d35df41eac69 Initial revision
kono
parents:
diff changeset
15
d35df41eac69 Initial revision
kono
parents:
diff changeset
16 code code3(a,b,c,d,e,f)
d35df41eac69 Initial revision
kono
parents:
diff changeset
17 char a,b;
d35df41eac69 Initial revision
kono
parents:
diff changeset
18 int c,d,e,f;
d35df41eac69 Initial revision
kono
parents:
diff changeset
19 {
d35df41eac69 Initial revision
kono
parents:
diff changeset
20 if(a)
d35df41eac69 Initial revision
kono
parents:
diff changeset
21 goto code3(a,b,c,d,e,f);
d35df41eac69 Initial revision
kono
parents:
diff changeset
22 else
d35df41eac69 Initial revision
kono
parents:
diff changeset
23 goto code3(a+3,b+3,c+3,d+3,e+3,f+3);
d35df41eac69 Initial revision
kono
parents:
diff changeset
24 }
d35df41eac69 Initial revision
kono
parents:
diff changeset
25
d35df41eac69 Initial revision
kono
parents:
diff changeset
26 code code4(a,b,c,d,e,f)
d35df41eac69 Initial revision
kono
parents:
diff changeset
27 char a,b;
d35df41eac69 Initial revision
kono
parents:
diff changeset
28 int c,d,e,f;
d35df41eac69 Initial revision
kono
parents:
diff changeset
29 {
d35df41eac69 Initial revision
kono
parents:
diff changeset
30 int i,j;
d35df41eac69 Initial revision
kono
parents:
diff changeset
31 if(a)
d35df41eac69 Initial revision
kono
parents:
diff changeset
32 goto code3(a,b,c,d,e,f);
d35df41eac69 Initial revision
kono
parents:
diff changeset
33 else
d35df41eac69 Initial revision
kono
parents:
diff changeset
34 goto code3(a+i,b+j,c+i,d+3,e+3,f+3);
d35df41eac69 Initial revision
kono
parents:
diff changeset
35 }
d35df41eac69 Initial revision
kono
parents:
diff changeset
36
d35df41eac69 Initial revision
kono
parents:
diff changeset
37 code code0(ac,av)
d35df41eac69 Initial revision
kono
parents:
diff changeset
38 int ac;
d35df41eac69 Initial revision
kono
parents:
diff changeset
39 char *av[];
d35df41eac69 Initial revision
kono
parents:
diff changeset
40 {
d35df41eac69 Initial revision
kono
parents:
diff changeset
41 goto code0(ac,av);
d35df41eac69 Initial revision
kono
parents:
diff changeset
42 }
d35df41eac69 Initial revision
kono
parents:
diff changeset
43
172
096559f07a70 some check
kono
parents: 0
diff changeset
44 code code1(ac,av,exit)
096559f07a70 some check
kono
parents: 0
diff changeset
45 int ac,exit;
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
46 char *av[];
d35df41eac69 Initial revision
kono
parents:
diff changeset
47 {
d35df41eac69 Initial revision
kono
parents:
diff changeset
48 code (*f)();
172
096559f07a70 some check
kono
parents: 0
diff changeset
49 f = exit;
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
50 if (ac>3)
d35df41eac69 Initial revision
kono
parents:
diff changeset
51 goto code1(ac,av);
d35df41eac69 Initial revision
kono
parents:
diff changeset
52 else if (ac>2)
d35df41eac69 Initial revision
kono
parents:
diff changeset
53 goto code1(av,ac);
d35df41eac69 Initial revision
kono
parents:
diff changeset
54 else
d35df41eac69 Initial revision
kono
parents:
diff changeset
55 goto (*f)(ac,av);
d35df41eac69 Initial revision
kono
parents:
diff changeset
56 }