source: tests/.expect/gccExtensions.x86.txt @ 42a99b0

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 42a99b0 was 665f432, checked in by Thierry Delisle <tdelisle@…>, 5 years ago

Fixed trac #149 where operand names in asm statements where incorrectly resolved (i.e., should not have been resolved)

  • Property mode set to 100644
File size: 9.5 KB
RevLine 
[ec91336]1extern signed int _X1xi_1 asm ( "xx" );
2signed int _X4mainFi_iPPKc__1(signed int _X4argci_1, const char **_X4argvPPKc_1){
3    __attribute__ ((unused)) signed int _X12_retval_maini_1;
[8986782]4    asm ( "nop" :  :  :  );
5    asm ( "nop" :  :  :  );
6    asm ( "nop" :  :  :  );
[ec91336]7    static signed int _X1yi_2 asm ( "yy" );
8    static signed int *_X1zPi_2 asm ( "zz" );
9    signed int _X3srci_2;
10    signed int _X3dsti_2;
[ada0eb06]11    asm volatile ( "mov %1, %0\n\t" "add $1, %0" :  :  :  );
[ec91336]12    asm volatile ( "mov %1, %0\n\t" "add $1, %0" : "=" "r" ( _X3dsti_2 ) :  :  );
13    asm volatile ( "mov %1, %0\n\t" "add $1, %0" : "=r" ( _X3dsti_2 ) : "r" ( _X3srci_2 ) :  );
[665f432]14    asm ( "mov %1, %0\n\t" "add $1, %0" : "=r" ( _X3dsti_2 ), "=r" ( _X3srci_2 ) : [ src ] "r" ( _X3dsti_2 ) : "r0" );
[ec91336]15    L2: L1: asm goto ( "frob %%r5, %1; jc %l[L1]; mov (%2), %%r5" :  : "r" ( _X3srci_2 ), "r" ( (&_X3dsti_2) ) : "r5", "memory" : L1, L2 );
16    double _Complex _X2c1Cd_2;
17    double _Complex _X2c2Cd_2;
18    const signed int _X2i1Ki_2;
19    const signed int _X2i2Ki_2;
20    const signed int _X2i3Ki_2;
21    inline signed int _X2f1Fi___2(){
22        __attribute__ ((unused)) signed int _X10_retval_f1i_2;
23    }
24    inline signed int _X2f2Fi___2(){
25        __attribute__ ((unused)) signed int _X10_retval_f2i_2;
26    }
27    signed int _X2s1i_2;
28    signed int _X2s2i_2;
29    volatile signed int _X2v1Vi_2;
30    volatile signed int _X2v2Vi_2;
[cdbab55]31    signed int _X2t1i_2;
32    signed int _X2t2i_2;
[ec91336]33    __extension__ const signed int _X2exKi_2;
[8986782]34    struct S {
[ec91336]35        __extension__ signed int _X1ai_2;
36        __extension__ signed int _X1bi_2;
37        __extension__ signed int _X1ci_2;
[8986782]38    };
[ec91336]39    inline void _X12_constructorFv_S1S_autogen___2(struct S *_X4_dstS1S_2){
[7b10ea9]40        {
41            ((void)((*_X4_dstS1S_2)._X1ai_2) /* ?{} */);
42        }
43
44        {
45            ((void)((*_X4_dstS1S_2)._X1bi_2) /* ?{} */);
46        }
47
48        {
49            ((void)((*_X4_dstS1S_2)._X1ci_2) /* ?{} */);
50        }
51
[ec91336]52    }
53    inline void _X12_constructorFv_S1SS1S_autogen___2(struct S *_X4_dstS1S_2, struct S _X4_srcS1S_2){
[7b10ea9]54        {
55            ((void)((*_X4_dstS1S_2)._X1ai_2=_X4_srcS1S_2._X1ai_2) /* ?{} */);
56        }
57
58        {
59            ((void)((*_X4_dstS1S_2)._X1bi_2=_X4_srcS1S_2._X1bi_2) /* ?{} */);
60        }
61
62        {
63            ((void)((*_X4_dstS1S_2)._X1ci_2=_X4_srcS1S_2._X1ci_2) /* ?{} */);
64        }
65
[ec91336]66    }
67    inline void _X11_destructorFv_S1S_autogen___2(struct S *_X4_dstS1S_2){
[7b10ea9]68        {
69            ((void)((*_X4_dstS1S_2)._X1ci_2) /* ^?{} */);
70        }
71
72        {
73            ((void)((*_X4_dstS1S_2)._X1bi_2) /* ^?{} */);
74        }
75
76        {
77            ((void)((*_X4_dstS1S_2)._X1ai_2) /* ^?{} */);
78        }
79
[ec91336]80    }
81    inline struct S _X16_operator_assignFS1S_S1SS1S_autogen___2(struct S *_X4_dstS1S_2, struct S _X4_srcS1S_2){
82        struct S _X4_retS1S_2;
[7b10ea9]83        {
84            ((void)((*_X4_dstS1S_2)._X1ai_2=_X4_srcS1S_2._X1ai_2));
85        }
86
87        {
88            ((void)((*_X4_dstS1S_2)._X1bi_2=_X4_srcS1S_2._X1bi_2));
89        }
90
91        {
92            ((void)((*_X4_dstS1S_2)._X1ci_2=_X4_srcS1S_2._X1ci_2));
93        }
94
95        {
96            ((void)_X12_constructorFv_S1SS1S_autogen___2((&_X4_retS1S_2), (*_X4_dstS1S_2)));
97        }
98
[ec91336]99        return _X4_retS1S_2;
100    }
101    inline void _X12_constructorFv_S1Si_autogen___2(struct S *_X4_dstS1S_2, signed int _X1ai_2){
[7b10ea9]102        {
103            ((void)((*_X4_dstS1S_2)._X1ai_2=_X1ai_2) /* ?{} */);
104        }
105
106        {
107            ((void)((*_X4_dstS1S_2)._X1bi_2) /* ?{} */);
108        }
109
110        {
111            ((void)((*_X4_dstS1S_2)._X1ci_2) /* ?{} */);
112        }
113
[ec91336]114    }
115    inline void _X12_constructorFv_S1Sii_autogen___2(struct S *_X4_dstS1S_2, signed int _X1ai_2, signed int _X1bi_2){
[7b10ea9]116        {
117            ((void)((*_X4_dstS1S_2)._X1ai_2=_X1ai_2) /* ?{} */);
118        }
119
120        {
121            ((void)((*_X4_dstS1S_2)._X1bi_2=_X1bi_2) /* ?{} */);
122        }
123
124        {
125            ((void)((*_X4_dstS1S_2)._X1ci_2) /* ?{} */);
126        }
127
[ec91336]128    }
129    inline void _X12_constructorFv_S1Siii_autogen___2(struct S *_X4_dstS1S_2, signed int _X1ai_2, signed int _X1bi_2, signed int _X1ci_2){
[7b10ea9]130        {
131            ((void)((*_X4_dstS1S_2)._X1ai_2=_X1ai_2) /* ?{} */);
132        }
133
134        {
135            ((void)((*_X4_dstS1S_2)._X1bi_2=_X1bi_2) /* ?{} */);
136        }
137
138        {
139            ((void)((*_X4_dstS1S_2)._X1ci_2=_X1ci_2) /* ?{} */);
140        }
141
[ec91336]142    }
143    signed int _X1ii_2 = __extension__ 3;
144    __extension__ signed int _X1ai_2;
145    __extension__ signed int _X1bi_2;
146    __extension__ signed int _X1ci_2;
[7b10ea9]147    {
148        ((void)(((void)(((void)__extension__ _X1ai_2) , __extension__ _X1bi_2)) , __extension__ _X1ci_2));
149    }
150
151    {
152        ((void)(__extension__ _X1ai_2=(__extension__ _X1bi_2+__extension__ _X1ci_2)));
153    }
154
155    {
156        ((void)(__extension__ _X1ai_2=__extension__ (__extension__ _X1bi_2+__extension__ _X1ci_2)));
157    }
158
[ec91336]159    signed int _X2a1i_2;
160    const signed int _X2a2Ki_2;
161    static const signed int _X2a3Ki_2;
162    static const signed int _X2a4Ki_2;
163    static const signed int _X2a5Ki_2;
164    static const signed int _X2a6Ki_2;
165    static const signed int _X2a7Ki_2;
166    signed int *_X2p1Pi_2;
167    signed int *_X2p2Pi_2;
[8986782]168    struct s1;
169    struct s2 {
[ec91336]170        signed int _X1ii_2;
[8986782]171    };
[ec91336]172    inline void _X12_constructorFv_S2s2_autogen___2(struct s2 *_X4_dstS2s2_2){
[7b10ea9]173        {
174            ((void)((*_X4_dstS2s2_2)._X1ii_2) /* ?{} */);
175        }
176
[8986782]177    }
[ec91336]178    inline void _X12_constructorFv_S2s2S2s2_autogen___2(struct s2 *_X4_dstS2s2_2, struct s2 _X4_srcS2s2_2){
[7b10ea9]179        {
180            ((void)((*_X4_dstS2s2_2)._X1ii_2=_X4_srcS2s2_2._X1ii_2) /* ?{} */);
181        }
182
[8986782]183    }
[ec91336]184    inline void _X11_destructorFv_S2s2_autogen___2(struct s2 *_X4_dstS2s2_2){
[7b10ea9]185        {
186            ((void)((*_X4_dstS2s2_2)._X1ii_2) /* ^?{} */);
187        }
188
[8986782]189    }
[ec91336]190    inline struct s2 _X16_operator_assignFS2s2_S2s2S2s2_autogen___2(struct s2 *_X4_dstS2s2_2, struct s2 _X4_srcS2s2_2){
191        struct s2 _X4_retS2s2_2;
[7b10ea9]192        {
193            ((void)((*_X4_dstS2s2_2)._X1ii_2=_X4_srcS2s2_2._X1ii_2));
194        }
195
196        {
197            ((void)_X12_constructorFv_S2s2S2s2_autogen___2((&_X4_retS2s2_2), (*_X4_dstS2s2_2)));
198        }
199
[ec91336]200        return _X4_retS2s2_2;
[9facf3b]201    }
[ec91336]202    inline void _X12_constructorFv_S2s2i_autogen___2(struct s2 *_X4_dstS2s2_2, signed int _X1ii_2){
[7b10ea9]203        {
204            ((void)((*_X4_dstS2s2_2)._X1ii_2=_X1ii_2) /* ?{} */);
205        }
206
[8986782]207    }
208    struct s3 {
[ec91336]209        signed int _X1ii_2;
[8986782]210    };
[ec91336]211    inline void _X12_constructorFv_S2s3_autogen___2(struct s3 *_X4_dstS2s3_2){
[7b10ea9]212        {
213            ((void)((*_X4_dstS2s3_2)._X1ii_2) /* ?{} */);
214        }
215
[8986782]216    }
[ec91336]217    inline void _X12_constructorFv_S2s3S2s3_autogen___2(struct s3 *_X4_dstS2s3_2, struct s3 _X4_srcS2s3_2){
[7b10ea9]218        {
219            ((void)((*_X4_dstS2s3_2)._X1ii_2=_X4_srcS2s3_2._X1ii_2) /* ?{} */);
220        }
221
[8986782]222    }
[ec91336]223    inline void _X11_destructorFv_S2s3_autogen___2(struct s3 *_X4_dstS2s3_2){
[7b10ea9]224        {
225            ((void)((*_X4_dstS2s3_2)._X1ii_2) /* ^?{} */);
226        }
227
[8986782]228    }
[ec91336]229    inline struct s3 _X16_operator_assignFS2s3_S2s3S2s3_autogen___2(struct s3 *_X4_dstS2s3_2, struct s3 _X4_srcS2s3_2){
230        struct s3 _X4_retS2s3_2;
[7b10ea9]231        {
232            ((void)((*_X4_dstS2s3_2)._X1ii_2=_X4_srcS2s3_2._X1ii_2));
233        }
234
235        {
236            ((void)_X12_constructorFv_S2s3S2s3_autogen___2((&_X4_retS2s3_2), (*_X4_dstS2s3_2)));
237        }
238
[ec91336]239        return _X4_retS2s3_2;
[9facf3b]240    }
[ec91336]241    inline void _X12_constructorFv_S2s3i_autogen___2(struct s3 *_X4_dstS2s3_2, signed int _X1ii_2){
[7b10ea9]242        {
243            ((void)((*_X4_dstS2s3_2)._X1ii_2=_X1ii_2) /* ?{} */);
244        }
245
[8986782]246    }
[ec91336]247    struct s3 _X2x1S2s3_2;
248    struct s3 _X2y1S2s3_2;
[8986782]249    struct s4 {
[ec91336]250        signed int _X1ii_2;
[8986782]251    };
[ec91336]252    inline void _X12_constructorFv_S2s4_autogen___2(struct s4 *_X4_dstS2s4_2){
[7b10ea9]253        {
254            ((void)((*_X4_dstS2s4_2)._X1ii_2) /* ?{} */);
255        }
256
[ec91336]257    }
258    inline void _X12_constructorFv_S2s4S2s4_autogen___2(struct s4 *_X4_dstS2s4_2, struct s4 _X4_srcS2s4_2){
[7b10ea9]259        {
260            ((void)((*_X4_dstS2s4_2)._X1ii_2=_X4_srcS2s4_2._X1ii_2) /* ?{} */);
261        }
262
[ec91336]263    }
264    inline void _X11_destructorFv_S2s4_autogen___2(struct s4 *_X4_dstS2s4_2){
[7b10ea9]265        {
266            ((void)((*_X4_dstS2s4_2)._X1ii_2) /* ^?{} */);
267        }
268
[ec91336]269    }
270    inline struct s4 _X16_operator_assignFS2s4_S2s4S2s4_autogen___2(struct s4 *_X4_dstS2s4_2, struct s4 _X4_srcS2s4_2){
271        struct s4 _X4_retS2s4_2;
[7b10ea9]272        {
273            ((void)((*_X4_dstS2s4_2)._X1ii_2=_X4_srcS2s4_2._X1ii_2));
274        }
275
276        {
277            ((void)_X12_constructorFv_S2s4S2s4_autogen___2((&_X4_retS2s4_2), (*_X4_dstS2s4_2)));
278        }
279
[ec91336]280        return _X4_retS2s4_2;
281    }
282    inline void _X12_constructorFv_S2s4i_autogen___2(struct s4 *_X4_dstS2s4_2, signed int _X1ii_2){
[7b10ea9]283        {
284            ((void)((*_X4_dstS2s4_2)._X1ii_2=_X1ii_2) /* ?{} */);
285        }
286
[ec91336]287    }
288    struct s4 _X2x2S2s4_2;
289    struct s4 _X2y2S2s4_2;
290    signed int _X2m1A0i_2[((unsigned int )10)];
291    signed int _X2m2A0A0i_2[((unsigned int )10)][((unsigned int )10)];
292    signed int _X2m3A0A0i_2[((unsigned int )10)][((unsigned int )10)];
[7b10ea9]293    {
[933f32f]294        ((void)(_X12_retval_maini_1=0) /* ?{} */);
[7b10ea9]295    }
296
[ec91336]297    return _X12_retval_maini_1;
[8986782]298}
[ec91336]299static inline int invoke_main(int argc, char* argv[], char* envp[]) { (void)argc; (void)argv; (void)envp; return _X4mainFi_iPPKc__1((signed int )argc, (const char **)argv); }
[ada0eb06]300static inline signed int invoke_main(signed int argc, char **argv, char **envp);
[ec91336]301signed int main(signed int _X4argci_1, char **_X4argvPPc_1, char **_X4envpPPc_1){
302    __attribute__ ((unused)) signed int _X12_retval_maini_1;
[7b10ea9]303    {
[933f32f]304        signed int _tmp_cp_ret4;
305        ((void)(_X12_retval_maini_1=(((void)(_tmp_cp_ret4=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret4)) /* ?{} */);
[7b10ea9]306    }
307
[ec91336]308    return _X12_retval_maini_1;
[13de47bc]309}
Note: See TracBrowser for help on using the repository browser.