source: src/tests/.expect/32/gccExtensions.txt@ 797347f

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors ctor deferred_resn demangler enum forall-pointer-decay jacob/cs343-translation jenkins-sandbox memory new-ast new-ast-unique-expr new-env no_list persistent-indexer pthread-emulation qualifiedEnum resolv-new stuck-waitfor-destruct with_gc
Last change on this file since 797347f was 797347f, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago

update 32-bit test for gccExtensions.c

  • Property mode set to 100644
File size: 8.8 KB
Line 
1extern void *malloc(unsigned int __size);
2extern void free(void *__ptr);
3extern void abort(void);
4extern int atexit(void (*__func)(void));
5extern void exit(int __status);
6extern int printf(const char *__restrict __format, ...);
7extern int __x__i_1;
8int main(int __argc__i_1, const char **__argv__PPCc_1){
9 asm ( "nop" : : : );
10 asm ( "nop" : : : );
11 asm ( "nop" : : : );
12 static int __y__i_2;
13 int __src__i_2;
14 int __dst__i_2;
15 asm volatile ( "mov %1, %0\n\tadd $1, %0" : : : );
16 asm volatile ( "mov %1, %0\n\tadd $1, %0" : "=r" ( __dst__i_2 ) : : );
17 asm volatile ( "mov %1, %0\n\tadd $1, %0" : "=r" ( __dst__i_2 ) : "r" ( __src__i_2 ) : );
18 asm ( "mov %1, %0\n\tadd $1, %0" : "=r" ( __dst__i_2 ), "=r" ( __src__i_2 ) : [ __src__i_2 ] "r" ( __dst__i_2 ) : "r0" );
19 double _Complex __c1__Xd_2;
20 double _Complex __c2__Xd_2;
21 const int __i1__Ci_2;
22 const int __i2__Ci_2;
23 const int __i3__Ci_2;
24 __extension__ const int __ex__Ci_2;
25 struct S {
26 __extension__ int __a__i_2;
27 __extension__ int __b__i_2;
28 __extension__ int __c__i_2;
29 };
30 inline struct S ___operator_assign__F2sS_P2sS2sS_autogen___2(struct S *___dst__P2sS_2, struct S ___src__2sS_2){
31 ((void)((*___dst__P2sS_2).__a__i_2=___src__2sS_2.__a__i_2));
32 ((void)((*___dst__P2sS_2).__b__i_2=___src__2sS_2.__b__i_2));
33 ((void)((*___dst__P2sS_2).__c__i_2=___src__2sS_2.__c__i_2));
34 return ((struct S )___src__2sS_2);
35 }
36 inline void ___constructor__F_P2sS_autogen___2(struct S *___dst__P2sS_2){
37 ((void)((*((int *)(&(*___dst__P2sS_2).__a__i_2)))) /* ?{} */);
38 ((void)((*((int *)(&(*___dst__P2sS_2).__b__i_2)))) /* ?{} */);
39 ((void)((*((int *)(&(*___dst__P2sS_2).__c__i_2)))) /* ?{} */);
40 }
41 inline void ___constructor__F_P2sS2sS_autogen___2(struct S *___dst__P2sS_2, struct S ___src__2sS_2){
42 ((void)((*((int *)(&(*___dst__P2sS_2).__a__i_2)))=___src__2sS_2.__a__i_2) /* ?{} */);
43 ((void)((*((int *)(&(*___dst__P2sS_2).__b__i_2)))=___src__2sS_2.__b__i_2) /* ?{} */);
44 ((void)((*((int *)(&(*___dst__P2sS_2).__c__i_2)))=___src__2sS_2.__c__i_2) /* ?{} */);
45 }
46 inline void ___destructor__F_P2sS_autogen___2(struct S *___dst__P2sS_2){
47 ((void)((*((int *)(&(*___dst__P2sS_2).__c__i_2)))) /* ^?{} */);
48 ((void)((*((int *)(&(*___dst__P2sS_2).__b__i_2)))) /* ^?{} */);
49 ((void)((*((int *)(&(*___dst__P2sS_2).__a__i_2)))) /* ^?{} */);
50 }
51 inline void ___constructor__F_P2sSi_autogen___2(struct S *___dst__P2sS_2, int __a__i_2){
52 ((void)((*((int *)(&(*___dst__P2sS_2).__a__i_2)))=__a__i_2) /* ?{} */);
53 ((void)((*((int *)(&(*___dst__P2sS_2).__b__i_2)))) /* ?{} */);
54 ((void)((*((int *)(&(*___dst__P2sS_2).__c__i_2)))) /* ?{} */);
55 }
56 inline void ___constructor__F_P2sSii_autogen___2(struct S *___dst__P2sS_2, int __a__i_2, int __b__i_2){
57 ((void)((*((int *)(&(*___dst__P2sS_2).__a__i_2)))=__a__i_2) /* ?{} */);
58 ((void)((*((int *)(&(*___dst__P2sS_2).__b__i_2)))=__b__i_2) /* ?{} */);
59 ((void)((*((int *)(&(*___dst__P2sS_2).__c__i_2)))) /* ?{} */);
60 }
61 inline void ___constructor__F_P2sSiii_autogen___2(struct S *___dst__P2sS_2, int __a__i_2, int __b__i_2, int __c__i_2){
62 ((void)((*((int *)(&(*___dst__P2sS_2).__a__i_2)))=__a__i_2) /* ?{} */);
63 ((void)((*((int *)(&(*___dst__P2sS_2).__b__i_2)))=__b__i_2) /* ?{} */);
64 ((void)((*((int *)(&(*___dst__P2sS_2).__c__i_2)))=__c__i_2) /* ?{} */);
65 }
66 int __i__i_2;
67 ((void)((*((int *)(&__i__i_2)))=__extension__ 3) /* ?{} */);
68 __extension__ int __a__i_2;
69 __extension__ int __b__i_2;
70 __extension__ int __c__i_2;
71 ((void)((__extension__ __a__i_2 , __extension__ __b__i_2) , __extension__ __c__i_2));
72 ((void)(__extension__ __a__i_2=(__extension__ __b__i_2+__extension__ __c__i_2)));
73 ((void)(__extension__ __a__i_2=__extension__ (__extension__ __b__i_2+__extension__ __c__i_2)));
74 inline int __f1__Fi___2(){
75 }
76 inline int __f2__Fi___2(){
77 }
78 int __s1__i_2;
79 int __s2__i_2;
80 int __t1___2;
81 int __t2___2;
82 volatile int __v1__Vi_2;
83 volatile int __v2__Vi_2;
84 int __a1__i_2;
85 const int __a2__Ci_2;
86 static const int __a3__Ci_2;
87 static const int __a4__Ci_2;
88 static const int __a5__Ci_2;
89 static const int __a6__Ci_2;
90 static const int __a7__Ci_2;
91 int *__p1__Pi_2;
92 int *__p2__Pi_2;
93 struct s1;
94 struct s2 {
95 int __i__i_2;
96 };
97 inline struct s2 ___operator_assign__F3ss2_P3ss23ss2_autogen___2(struct s2 *___dst__P3ss2_2, struct s2 ___src__3ss2_2){
98 ((void)((*___dst__P3ss2_2).__i__i_2=___src__3ss2_2.__i__i_2));
99 return ((struct s2 )___src__3ss2_2);
100 }
101 inline void ___constructor__F_P3ss2_autogen___2(struct s2 *___dst__P3ss2_2){
102 ((void)((*((int *)(&(*___dst__P3ss2_2).__i__i_2)))) /* ?{} */);
103 }
104 inline void ___constructor__F_P3ss23ss2_autogen___2(struct s2 *___dst__P3ss2_2, struct s2 ___src__3ss2_2){
105 ((void)((*((int *)(&(*___dst__P3ss2_2).__i__i_2)))=___src__3ss2_2.__i__i_2) /* ?{} */);
106 }
107 inline void ___destructor__F_P3ss2_autogen___2(struct s2 *___dst__P3ss2_2){
108 ((void)((*((int *)(&(*___dst__P3ss2_2).__i__i_2)))) /* ^?{} */);
109 }
110 inline void ___constructor__F_P3ss2i_autogen___2(struct s2 *___dst__P3ss2_2, int __i__i_2){
111 ((void)((*((int *)(&(*___dst__P3ss2_2).__i__i_2)))=__i__i_2) /* ?{} */);
112 }
113 struct s3 {
114 int __i__i_2;
115 };
116 inline struct s3 ___operator_assign__F3ss3_P3ss33ss3_autogen___2(struct s3 *___dst__P3ss3_2, struct s3 ___src__3ss3_2){
117 ((void)((*___dst__P3ss3_2).__i__i_2=___src__3ss3_2.__i__i_2));
118 return ((struct s3 )___src__3ss3_2);
119 }
120 inline void ___constructor__F_P3ss3_autogen___2(struct s3 *___dst__P3ss3_2){
121 ((void)((*((int *)(&(*___dst__P3ss3_2).__i__i_2)))) /* ?{} */);
122 }
123 inline void ___constructor__F_P3ss33ss3_autogen___2(struct s3 *___dst__P3ss3_2, struct s3 ___src__3ss3_2){
124 ((void)((*((int *)(&(*___dst__P3ss3_2).__i__i_2)))=___src__3ss3_2.__i__i_2) /* ?{} */);
125 }
126 inline void ___destructor__F_P3ss3_autogen___2(struct s3 *___dst__P3ss3_2){
127 ((void)((*((int *)(&(*___dst__P3ss3_2).__i__i_2)))) /* ^?{} */);
128 }
129 inline void ___constructor__F_P3ss3i_autogen___2(struct s3 *___dst__P3ss3_2, int __i__i_2){
130 ((void)((*((int *)(&(*___dst__P3ss3_2).__i__i_2)))=__i__i_2) /* ?{} */);
131 }
132 struct s3 __x1__3ss3_2;
133 ((void)___constructor__F_P3ss3_autogen___2(((struct s3 *)(&__x1__3ss3_2))));
134 struct s3 __y1__3ss3_2;
135 ((void)___constructor__F_P3ss3_autogen___2(((struct s3 *)(&__y1__3ss3_2))));
136 struct s4 {
137 int __i__i_2;
138 };
139 inline struct s4 ___operator_assign__F3ss4_P3ss43ss4_autogen___2(struct s4 *___dst__P3ss4_2, struct s4 ___src__3ss4_2){
140 ((void)((*___dst__P3ss4_2).__i__i_2=___src__3ss4_2.__i__i_2));
141 ((void)___destructor__F_P3ss3_autogen___2(((struct s3 *)(&__y1__3ss3_2))));
142 ((void)___destructor__F_P3ss3_autogen___2(((struct s3 *)(&__x1__3ss3_2))));
143 return ((struct s4 )___src__3ss4_2);
144 }
145 inline void ___constructor__F_P3ss4_autogen___2(struct s4 *___dst__P3ss4_2){
146 ((void)((*((int *)(&(*___dst__P3ss4_2).__i__i_2)))) /* ?{} */);
147 }
148 inline void ___constructor__F_P3ss43ss4_autogen___2(struct s4 *___dst__P3ss4_2, struct s4 ___src__3ss4_2){
149 ((void)((*((int *)(&(*___dst__P3ss4_2).__i__i_2)))=___src__3ss4_2.__i__i_2) /* ?{} */);
150 }
151 inline void ___destructor__F_P3ss4_autogen___2(struct s4 *___dst__P3ss4_2){
152 ((void)((*((int *)(&(*___dst__P3ss4_2).__i__i_2)))) /* ^?{} */);
153 }
154 inline void ___constructor__F_P3ss4i_autogen___2(struct s4 *___dst__P3ss4_2, int __i__i_2){
155 ((void)((*((int *)(&(*___dst__P3ss4_2).__i__i_2)))=__i__i_2) /* ?{} */);
156 }
157 struct s4 __x2__3ss4_2;
158 ((void)___constructor__F_P3ss4_autogen___2(((struct s4 *)(&__x2__3ss4_2))));
159 struct s4 __y2__3ss4_2;
160 ((void)___constructor__F_P3ss4_autogen___2(((struct s4 *)(&__y2__3ss4_2))));
161 int __m1__A0i_2[((unsigned int )10)];
162 int __m2__A0A0i_2[((unsigned int )10)][((unsigned int )10)];
163 int __m3__A0A0i_2[((unsigned int )10)][((unsigned int )10)];
164 int _retVal0 = { 0 };
165 ((void)(_retVal0=0) /* ?{} */);
166 ((void)___destructor__F_P3ss4_autogen___2(((struct s4 *)(&__y2__3ss4_2))));
167 ((void)___destructor__F_P3ss4_autogen___2(((struct s4 *)(&__x2__3ss4_2))));
168 ((void)___destructor__F_P3ss3_autogen___2(((struct s3 *)(&__y1__3ss3_2))));
169 ((void)___destructor__F_P3ss3_autogen___2(((struct s3 *)(&__x1__3ss3_2))));
170 return ((int )_retVal0);
171 ((void)___destructor__F_P3ss4_autogen___2(((struct s4 *)(&__y2__3ss4_2))));
172 ((void)___destructor__F_P3ss4_autogen___2(((struct s4 *)(&__x2__3ss4_2))));
173 ((void)___destructor__F_P3ss3_autogen___2(((struct s3 *)(&__y1__3ss3_2))));
174 ((void)___destructor__F_P3ss3_autogen___2(((struct s3 *)(&__x1__3ss3_2))));
175}
Note: See TracBrowser for help on using the repository browser.