source: branches/libc-0.6/testcase/631asmc.c

Last change on this file was 675, checked in by bird, 22 years ago

More stuff.

  • Property cvs2svn:cvs-rev set to 1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1/* $Id: 631asmc.c 675 2003-09-09 18:27:08Z bird $
2 *
3 * The code which VAC generate the 631asm.asm file from.
4 *
5 * InnoTek Systemberatung GmbH confidential
6 *
7 * Copyright (c) 2003 InnoTek Systemberatung GmbH
8 * Author: knut st. osmundsen <bird-srcspam@anduin.net>
9 *
10 * All Rights Reserved
11 *
12 */
13
14/*******************************************************************************
15* Structures and Typedefs *
16*******************************************************************************/
17struct ret4bytes
18{
19 unsigned int au[1];
20};
21
22struct ret8bytes
23{
24 unsigned int au[2];
25};
26
27struct ret12bytes
28{
29 unsigned int au[3];
30};
31
32struct ret16bytes
33{
34 unsigned int au[4];
35};
36
37
38struct ret4bytes _System asmfoosys4(void)
39{
40 struct ret4bytes ret = {1};
41 return ret;
42}
43
44struct ret8bytes _System asmfoosys8(void)
45{
46 struct ret8bytes ret = {1,2};
47 return ret;
48}
49
50struct ret12bytes _System asmfoosys12(void)
51{
52 struct ret12bytes ret = {1,2,3};
53 return ret;
54}
55
56struct ret16bytes _System asmfoosys16(void)
57{
58 struct ret16bytes ret = {1,2,3,4};
59 return ret;
60}
61
62/* optlink */
63struct ret4bytes _Optlink asmfooopt4(void)
64{
65 struct ret4bytes ret = {1};
66 return ret;
67}
68
69struct ret8bytes _Optlink asmfooopt8(void)
70{
71 struct ret8bytes ret = {1,2};
72 return ret;
73}
74
75struct ret12bytes _Optlink asmfooopt12(void)
76{
77 struct ret12bytes ret = {1,2,3};
78 return ret;
79}
80
81struct ret16bytes _Optlink asmfooopt16(void)
82{
83 struct ret16bytes ret = {1,2,3,4};
84 return ret;
85}
86
87
88/* stdcall */
89struct ret4bytes __stdcall asmfoostd4(void)
90{
91 struct ret4bytes ret = {1};
92 return ret;
93}
94
95struct ret8bytes __stdcall asmfoostd8(void)
96{
97 struct ret8bytes ret = {1,2};
98 return ret;
99}
100
101struct ret12bytes __stdcall asmfoostd12(void)
102{
103 struct ret12bytes ret = {1,2,3};
104 return ret;
105}
106
107struct ret16bytes __stdcall asmfoostd16(void)
108{
109 struct ret16bytes ret = {1,2,3,4};
110 return ret;
111}
112
Note: See TracBrowser for help on using the repository browser.