OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [objc.dg/] [gnu-encoding/] [struct-layout-1.h] - Blame information for rev 825

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
#include <limits.h>
2
#include <stdarg.h>
3
#include <stdbool.h>
4
#include <stdlib.h>
5
#include <stdio.h>
6
#include <string.h>
7
#include "compat-common.h"
8
 
9
#ifndef SKIP_ATTRIBUTE
10
# include "vector-defs.h"
11
#else
12
typedef int qi;
13
typedef int hi;
14
typedef int si;
15
typedef int di;
16
typedef float sf;
17
typedef float df;
18
typedef int v8qi;
19
typedef int v16qi;
20
typedef int v2hi;
21
typedef int v4hi;
22
typedef int v8hi;
23
typedef int v2si;
24
typedef int v4si;
25
typedef int v1di;
26
typedef int v2di;
27
typedef int v2sf;
28
typedef int v4sf;
29
typedef int v16sf;
30
typedef int v2df;
31
typedef int u8qi;
32
typedef int u16qi;
33
typedef int u2hi;
34
typedef int u4hi;
35
typedef int u8hi;
36
typedef int u2si;
37
typedef int u4si;
38
typedef int u1di;
39
typedef int u2di;
40
typedef int u2sf;
41
typedef int u4sf;
42
typedef int u16sf;
43
typedef int u2df;
44
#endif
45
#if (defined __i386__ || defined __x86_64__) && !defined SKIP_ATTRIBUTE
46
# ifdef __MMX__
47
#  include <mmintrin.h>
48
# else
49
typedef int __m64;
50
# endif
51
# ifdef __SSE__
52
#  include <xmmintrin.h>
53
# else
54
typedef int __m128;
55
# endif
56
#else
57
typedef int __m64;
58
typedef int __m128;
59
#endif
60
 
61
#define FLDS_MAX        32
62
extern struct Info
63
{
64
  int nfields, nbitfields;
65
  void *sp, *a0p, *a3p;
66
  void *flds[FLDS_MAX];
67
  size_t sz, sizes[FLDS_MAX];
68
  size_t als, ala0, ala3, aligns[FLDS_MAX];
69
} info;
70
 
71
extern int intarray[256];
72
extern int fn0 (void), fn1 (void), fn2 (void), fn3 (void), fn4 (void);
73
extern int fn5 (void), fn6 (void), fn7 (void), fn8 (void), fn9 (void);
74
 
75
#ifdef DBG
76
#define FAIL(n, m) printf ("fail %d.%d\n", n, m), ++fails
77
#else
78
#define FAIL(n, m) ++fails
79
#endif
80
 
81
#ifdef SKIP_ATTRIBUTE
82
# define __attribute__(x)
83
#endif
84
#define atal            __attribute__((aligned))
85
#define atpa            __attribute__((packed))
86
#define atalpa          __attribute__((aligned, packed))
87
#define atpaal          __attribute__((packed, aligned))
88
#define atal1           __attribute__((aligned (1)))
89
#define atal2           __attribute__((aligned (2)))
90
#define atal4           __attribute__((aligned (4)))
91
#define atal8           __attribute__((aligned (8)))
92
#define atal16          __attribute__((aligned (16)))
93
#define atal1pa         __attribute__((aligned (1), packed))
94
#define atal2pa         __attribute__((aligned (2), packed))
95
#define atal4pa         __attribute__((aligned (4), packed))
96
#define atal8pa         __attribute__((aligned (8), packed))
97
#define atal16pa        __attribute__((aligned (16), packed))
98
#define atpaal1         __attribute__((packed, aligned (1)))
99
#define atpaal2         __attribute__((packed, aligned (2)))
100
#define atpaal4         __attribute__((packed, aligned (4)))
101
#define atpaal8         __attribute__((packed, aligned (8)))
102
#define atpaal16        __attribute__((packed, aligned (16)))
103
 
104
#if UCHAR_MAX == 255 && USHORT_MAX == 65535 && UINT_MAX == 4294967295U \
105
    && ULLONG_MAX == 18446744073709551615ULL
106
/* For ILP32 and LP64 targets, assume float is at least 32-bit
107
   and double plus long double at least 64-bit.  */
108
# define atalx1         atal1
109
# define atalx2         atal2
110
# define atalx4         atal4
111
# define atalx8         atal8
112
# define atalx16        atal16
113
# define atalx1pa       atal1pa
114
# define atalx2pa       atal2pa
115
# define atalx4pa       atal4pa
116
# define atalx8pa       atal8pa
117
# define atalx16pa      atal16pa
118
# define atpaalx1       atpaal1
119
# define atpaalx2       atpaal2
120
# define atpaalx4       atpaal4
121
# define atpaalx8       atpaal8
122
# define atpaalx16      atpaal16
123
# if ULONG_MAX > 4294967295UL
124
#  define ataly8        atal8
125
#  define ataly8pa      atal8pa
126
#  define atpaaly8      atpaal8
127
#  define ataly16       atal16
128
#  define ataly16pa     atal16pa
129
#  define atpaaly16     atpaal16
130
# else
131
#  define ataly8
132
#  define ataly8pa
133
#  define atpaaly8
134
#  define ataly16
135
#  define ataly16pa
136
#  define atpaaly16
137
# endif
138
#else
139
# define atalx1
140
# define atalx2
141
# define atalx4
142
# define atalx8
143
# define atalx16
144
# define atalx1pa
145
# define atalx2pa
146
# define atalx4pa
147
# define atalx8pa
148
# define atalx16pa
149
# define atpaalx1
150
# define atpaalx2
151
# define atpaalx4
152
# define atpaalx8
153
# define atpaalx16
154
# define ataly8
155
# define ataly8pa
156
# define atpaaly8
157
# define ataly16
158
# define ataly16pa
159
# define atpaaly16
160
#endif
161
 
162
#define atQI            __attribute__((mode (QI)))
163
#define atHI            __attribute__((mode (HI)))
164
#define atSI            __attribute__((mode (SI)))
165
#define atDI            __attribute__((mode (DI)))
166
 
167
enum E0 { e0_0 };
168
enum E1 { e1_0, e1_1 };
169
enum E2 { e2_m3 = -3, e2_m2, e2_m1, e2_0, e2_1, e2_2, e2_3 };
170
enum E3 { e3_m127 = -127, e3_m126, e3_m125, e3_0 = 0, e3_125 = 125, e3_126, e3_127 };
171
enum E4 { e4_0, e4_1, e4_2, e4_3, e4_253 = 253, e4_254, e4_255 };
172
enum E5 { e5_m32767 = -32767, e5_m32766, e5_m32765, e5_0 = 0, e5_32765 = 32765, e5_32766, e5_32767 };
173
enum E6 { e6_0, e6_1, e6_2, e6_3, e6_65533 = 65533, e6_65534, e6_65535 };
174
enum E7 { e7_m2147483647 = -2147483647, e7_m2147483646, e7_m2147483645,
175
          e7_0, e7_2147483645 = 2147483645, e7_2147483646, e7_2147483647 };
176
enum E8 { e8_0, e8_1, e8_2, e8_3, e8_4294967293 = 4294967293U, e8_4294967294, e8_4294967295 };
177
enum E9 { e9_m1099511627775 = -1099511627775LL, e9_m1099511627774, e9_m1099511627773,
178
          e9_0, e9_1099511627773 = 1099511627773LL, e9_1099511627774, e9_1099511627775 };
179
 
180
typedef char Tchar;
181
typedef signed char Tschar;
182
typedef unsigned char Tuchar;
183
typedef short int Tshort;
184
typedef unsigned short int Tushort;
185
typedef int Tint;
186
typedef unsigned int Tuint;
187
typedef long int Tlong;
188
typedef unsigned long int Tulong;
189
typedef long long int Tllong;
190
typedef unsigned long long int Tullong;
191
#ifndef SKIP_COMPLEX_INT
192
typedef _Complex char Tcchar;
193
typedef _Complex signed char Tcschar;
194
typedef _Complex unsigned char Tcuchar;
195
typedef _Complex short int Tcshort;
196
typedef _Complex unsigned short int Tcushort;
197
typedef _Complex int Tcint;
198
typedef _Complex unsigned int Tcuint;
199
typedef _Complex long int Tclong;
200
typedef _Complex unsigned long int Tculong;
201
typedef _Complex long long int Tcllong;
202
typedef _Complex unsigned long long int Tcullong;
203
#endif
204
typedef float Tfloat;
205
typedef double Tdouble;
206
typedef long double Tldouble;
207
typedef _Complex float Tcfloat;
208
typedef _Complex double Tcdouble;
209
typedef _Complex long double Tcldouble;
210
typedef bool Tbool;
211
typedef enum E0 TE0;
212
typedef enum E1 TE1;
213
typedef enum E2 TE2;
214
typedef enum E3 TE3;
215
typedef enum E4 TE4;
216
typedef enum E5 TE5;
217
typedef enum E6 TE6;
218
typedef enum E7 TE7;
219
typedef enum E8 TE8;
220
typedef enum E9 TE9;
221
typedef void *Tptr;
222
typedef char *Tcptr;
223
typedef int *Tiptr;
224
typedef char Talchar atal;
225
typedef signed char Talschar atal;
226
typedef unsigned char Taluchar atal;
227
typedef short int Talshort atal;
228
typedef unsigned short int Talushort atal;
229
typedef int Talint atal;
230
typedef unsigned int Taluint atal;
231
typedef long int Tallong atal;
232
typedef unsigned long int Talulong atal;
233
typedef long long int Talllong atal;
234
typedef unsigned long long int Talullong atal;
235
#ifndef SKIP_COMPLEX_INT
236
typedef _Complex char Talcchar atal;
237
typedef _Complex signed char Talcschar atal;
238
typedef _Complex unsigned char Talcuchar atal;
239
typedef _Complex short int Talcshort atal;
240
typedef _Complex unsigned short int Talcushort atal;
241
typedef _Complex int Talcint atal;
242
typedef _Complex unsigned int Talcuint atal;
243
typedef _Complex long int Talclong atal;
244
typedef _Complex unsigned long int Talculong atal;
245
typedef _Complex long long int Talcllong atal;
246
typedef _Complex unsigned long long int Talcullong atal;
247
#endif
248
typedef float Talfloat atal;
249
typedef double Taldouble atal;
250
typedef long double Talldouble atal;
251
typedef _Complex float Talcfloat atal;
252
typedef _Complex double Talcdouble atal;
253
typedef _Complex long double Talcldouble atal;
254
typedef bool Talbool atal;
255
typedef enum E0 TalE0 atal;
256
typedef enum E1 TalE1 atal;
257
typedef enum E2 TalE2 atal;
258
typedef enum E3 TalE3 atal;
259
typedef enum E4 TalE4 atal;
260
typedef enum E5 TalE5 atal;
261
typedef enum E6 TalE6 atal;
262
typedef enum E7 TalE7 atal;
263
typedef enum E8 TalE8 atal;
264
typedef enum E9 TalE9 atal;
265
typedef void *Talptr atal;
266
typedef char *Talcptr atal;
267
typedef int *Taliptr atal;
268
typedef char Tal1char atal1;
269
typedef signed char Tal1schar atal1;
270
typedef unsigned char Tal1uchar atal1;
271
typedef short int Tal1short atal1;
272
typedef unsigned short int Tal1ushort atal1;
273
typedef int Tal1int atal1;
274
typedef unsigned int Tal1uint atal1;
275
typedef long int Tal1long atal1;
276
typedef unsigned long int Tal1ulong atal1;
277
typedef long long int Tal1llong atal1;
278
typedef unsigned long long int Tal1ullong atal1;
279
#ifndef SKIP_COMPLEX_INT
280
typedef _Complex char Tal1cchar atal1;
281
typedef _Complex signed char Tal1cschar atal1;
282
typedef _Complex unsigned char Tal1cuchar atal1;
283
typedef _Complex short int Tal1cshort atal1;
284
typedef _Complex unsigned short int Tal1cushort atal1;
285
typedef _Complex int Tal1cint atal1;
286
typedef _Complex unsigned int Tal1cuint atal1;
287
typedef _Complex long int Tal1clong atal1;
288
typedef _Complex unsigned long int Tal1culong atal1;
289
typedef _Complex long long int Tal1cllong atal1;
290
typedef _Complex unsigned long long int Tal1cullong atal1;
291
#endif
292
typedef float Tal1float atal1;
293
typedef double Tal1double atal1;
294
typedef long double Tal1ldouble atal1;
295
typedef _Complex float Tal1cfloat atal1;
296
typedef _Complex double Tal1cdouble atal1;
297
typedef _Complex long double Tal1cldouble atal1;
298
typedef bool Tal1bool atal1;
299
typedef enum E0 Tal1E0 atal1;
300
typedef enum E1 Tal1E1 atal1;
301
typedef enum E2 Tal1E2 atal1;
302
typedef enum E3 Tal1E3 atal1;
303
typedef enum E4 Tal1E4 atal1;
304
typedef enum E5 Tal1E5 atal1;
305
typedef enum E6 Tal1E6 atal1;
306
typedef enum E7 Tal1E7 atal1;
307
typedef enum E8 Tal1E8 atal1;
308
typedef enum E9 Tal1E9 atal1;
309
typedef void *Tal1ptr atal1;
310
typedef char *Tal1cptr atal1;
311
typedef int *Tal1iptr atal1;
312
typedef char Tal2char atal2;
313
typedef signed char Tal2schar atal2;
314
typedef unsigned char Tal2uchar atal2;
315
typedef short int Tal2short atal2;
316
typedef unsigned short int Tal2ushort atal2;
317
typedef int Tal2int atal2;
318
typedef unsigned int Tal2uint atal2;
319
typedef long int Tal2long atal2;
320
typedef unsigned long int Tal2ulong atal2;
321
typedef long long int Tal2llong atal2;
322
typedef unsigned long long int Tal2ullong atal2;
323
#ifndef SKIP_COMPLEX_INT
324
typedef _Complex char Tal2cchar atal2;
325
typedef _Complex signed char Tal2cschar atal2;
326
typedef _Complex unsigned char Tal2cuchar atal2;
327
typedef _Complex short int Tal2cshort atal2;
328
typedef _Complex unsigned short int Tal2cushort atal2;
329
typedef _Complex int Tal2cint atal2;
330
typedef _Complex unsigned int Tal2cuint atal2;
331
typedef _Complex long int Tal2clong atal2;
332
typedef _Complex unsigned long int Tal2culong atal2;
333
typedef _Complex long long int Tal2cllong atal2;
334
typedef _Complex unsigned long long int Tal2cullong atal2;
335
#endif
336
typedef float Tal2float atal2;
337
typedef double Tal2double atal2;
338
typedef long double Tal2ldouble atal2;
339
typedef _Complex float Tal2cfloat atal2;
340
typedef _Complex double Tal2cdouble atal2;
341
typedef _Complex long double Tal2cldouble atal2;
342
typedef bool Tal2bool atal2;
343
typedef enum E0 Tal2E0 atal2;
344
typedef enum E1 Tal2E1 atal2;
345
typedef enum E2 Tal2E2 atal2;
346
typedef enum E3 Tal2E3 atal2;
347
typedef enum E4 Tal2E4 atal2;
348
typedef enum E5 Tal2E5 atal2;
349
typedef enum E6 Tal2E6 atal2;
350
typedef enum E7 Tal2E7 atal2;
351
typedef enum E8 Tal2E8 atal2;
352
typedef enum E9 Tal2E9 atal2;
353
typedef void *Tal2ptr atal2;
354
typedef char *Tal2cptr atal2;
355
typedef int *Tal2iptr atal2;
356
typedef char Tal4char atal4;
357
typedef signed char Tal4schar atal4;
358
typedef unsigned char Tal4uchar atal4;
359
typedef short int Tal4short atal4;
360
typedef unsigned short int Tal4ushort atal4;
361
typedef int Tal4int atal4;
362
typedef unsigned int Tal4uint atal4;
363
typedef long int Tal4long atal4;
364
typedef unsigned long int Tal4ulong atal4;
365
typedef long long int Tal4llong atal4;
366
typedef unsigned long long int Tal4ullong atal4;
367
#ifndef SKIP_COMPLEX_INT
368
typedef _Complex char Tal4cchar atal4;
369
typedef _Complex signed char Tal4cschar atal4;
370
typedef _Complex unsigned char Tal4cuchar atal4;
371
typedef _Complex short int Tal4cshort atal4;
372
typedef _Complex unsigned short int Tal4cushort atal4;
373
typedef _Complex int Tal4cint atal4;
374
typedef _Complex unsigned int Tal4cuint atal4;
375
typedef _Complex long int Tal4clong atal4;
376
typedef _Complex unsigned long int Tal4culong atal4;
377
typedef _Complex long long int Tal4cllong atal4;
378
typedef _Complex unsigned long long int Tal4cullong atal4;
379
#endif
380
typedef float Tal4float atal4;
381
typedef double Tal4double atal4;
382
typedef long double Tal4ldouble atal4;
383
typedef _Complex float Tal4cfloat atal4;
384
typedef _Complex double Tal4cdouble atal4;
385
typedef _Complex long double Tal4cldouble atal4;
386
typedef bool Tal4bool atal4;
387
typedef enum E0 Tal4E0 atal4;
388
typedef enum E1 Tal4E1 atal4;
389
typedef enum E2 Tal4E2 atal4;
390
typedef enum E3 Tal4E3 atal4;
391
typedef enum E4 Tal4E4 atal4;
392
typedef enum E5 Tal4E5 atal4;
393
typedef enum E6 Tal4E6 atal4;
394
typedef enum E7 Tal4E7 atal4;
395
typedef enum E8 Tal4E8 atal4;
396
typedef enum E9 Tal4E9 atal4;
397
typedef void *Tal4ptr atal4;
398
typedef char *Tal4cptr atal4;
399
typedef int *Tal4iptr atal4;
400
typedef char Tal8char atal8;
401
typedef signed char Tal8schar atal8;
402
typedef unsigned char Tal8uchar atal8;
403
typedef short int Tal8short atal8;
404
typedef unsigned short int Tal8ushort atal8;
405
typedef int Tal8int atal8;
406
typedef unsigned int Tal8uint atal8;
407
typedef long int Tal8long atal8;
408
typedef unsigned long int Tal8ulong atal8;
409
typedef long long int Tal8llong atal8;
410
typedef unsigned long long int Tal8ullong atal8;
411
#ifndef SKIP_COMPLEX_INT
412
typedef _Complex char Tal8cchar atal8;
413
typedef _Complex signed char Tal8cschar atal8;
414
typedef _Complex unsigned char Tal8cuchar atal8;
415
typedef _Complex short int Tal8cshort atal8;
416
typedef _Complex unsigned short int Tal8cushort atal8;
417
typedef _Complex int Tal8cint atal8;
418
typedef _Complex unsigned int Tal8cuint atal8;
419
typedef _Complex long int Tal8clong atal8;
420
typedef _Complex unsigned long int Tal8culong atal8;
421
typedef _Complex long long int Tal8cllong atal8;
422
typedef _Complex unsigned long long int Tal8cullong atal8;
423
#endif
424
typedef float Tal8float atal8;
425
typedef double Tal8double atal8;
426
typedef long double Tal8ldouble atal8;
427
typedef _Complex float Tal8cfloat atal8;
428
typedef _Complex double Tal8cdouble atal8;
429
typedef _Complex long double Tal8cldouble atal8;
430
typedef bool Tal8bool atal8;
431
typedef enum E0 Tal8E0 atal8;
432
typedef enum E1 Tal8E1 atal8;
433
typedef enum E2 Tal8E2 atal8;
434
typedef enum E3 Tal8E3 atal8;
435
typedef enum E4 Tal8E4 atal8;
436
typedef enum E5 Tal8E5 atal8;
437
typedef enum E6 Tal8E6 atal8;
438
typedef enum E7 Tal8E7 atal8;
439
typedef enum E8 Tal8E8 atal8;
440
typedef enum E9 Tal8E9 atal8;
441
typedef void *Tal8ptr atal8;
442
typedef char *Tal8cptr atal8;
443
typedef int *Tal8iptr atal8;
444
typedef char Tal16char atal16;
445
typedef signed char Tal16schar atal16;
446
typedef unsigned char Tal16uchar atal16;
447
typedef short int Tal16short atal16;
448
typedef unsigned short int Tal16ushort atal16;
449
typedef int Tal16int atal16;
450
typedef unsigned int Tal16uint atal16;
451
typedef long int Tal16long atal16;
452
typedef unsigned long int Tal16ulong atal16;
453
typedef long long int Tal16llong atal16;
454
typedef unsigned long long int Tal16ullong atal16;
455
#ifndef SKIP_COMPLEX_INT
456
typedef _Complex char Tal16cchar atal16;
457
typedef _Complex signed char Tal16cschar atal16;
458
typedef _Complex unsigned char Tal16cuchar atal16;
459
typedef _Complex short int Tal16cshort atal16;
460
typedef _Complex unsigned short int Tal16cushort atal16;
461
typedef _Complex int Tal16cint atal16;
462
typedef _Complex unsigned int Tal16cuint atal16;
463
typedef _Complex long int Tal16clong atal16;
464
typedef _Complex unsigned long int Tal16culong atal16;
465
typedef _Complex long long int Tal16cllong atal16;
466
typedef _Complex unsigned long long int Tal16cullong atal16;
467
#endif
468
typedef float Tal16float atal16;
469
typedef double Tal16double atal16;
470
typedef long double Tal16ldouble atal16;
471
typedef _Complex float Tal16cfloat atal16;
472
typedef _Complex double Tal16cdouble atal16;
473
typedef _Complex long double Tal16cldouble atal16;
474
typedef bool Tal16bool atal16;
475
typedef enum E0 Tal16E0 atal16;
476
typedef enum E1 Tal16E1 atal16;
477
typedef enum E2 Tal16E2 atal16;
478
typedef enum E3 Tal16E3 atal16;
479
typedef enum E4 Tal16E4 atal16;
480
typedef enum E5 Tal16E5 atal16;
481
typedef enum E6 Tal16E6 atal16;
482
typedef enum E7 Tal16E7 atal16;
483
typedef enum E8 Tal16E8 atal16;
484
typedef enum E9 Tal16E9 atal16;
485
typedef void *Tal16ptr atal16;
486
typedef char *Tal16cptr atal16;
487
typedef int *Tal16iptr atal16;
488
typedef char Talx1char atalx1;
489
typedef signed char Talx1schar atalx1;
490
typedef unsigned char Talx1uchar atalx1;
491
typedef short int Talx1short atalx1;
492
typedef unsigned short int Talx1ushort atalx1;
493
typedef int Talx1int atalx1;
494
typedef unsigned int Talx1uint atalx1;
495
typedef long int Talx1long atalx1;
496
typedef unsigned long int Talx1ulong atalx1;
497
typedef long long int Talx1llong atalx1;
498
typedef unsigned long long int Talx1ullong atalx1;
499
#ifndef SKIP_COMPLEX_INT
500
typedef _Complex char Talx1cchar atalx1;
501
typedef _Complex signed char Talx1cschar atalx1;
502
typedef _Complex unsigned char Talx1cuchar atalx1;
503
typedef _Complex short int Talx1cshort atalx1;
504
typedef _Complex unsigned short int Talx1cushort atalx1;
505
typedef _Complex int Talx1cint atalx1;
506
typedef _Complex unsigned int Talx1cuint atalx1;
507
typedef _Complex long int Talx1clong atalx1;
508
typedef _Complex unsigned long int Talx1culong atalx1;
509
typedef _Complex long long int Talx1cllong atalx1;
510
typedef _Complex unsigned long long int Talx1cullong atalx1;
511
#endif
512
typedef float Talx1float atalx1;
513
typedef double Talx1double atalx1;
514
typedef long double Talx1ldouble atalx1;
515
typedef _Complex float Talx1cfloat atalx1;
516
typedef _Complex double Talx1cdouble atalx1;
517
typedef _Complex long double Talx1cldouble atalx1;
518
typedef bool Talx1bool atalx1;
519
typedef enum E0 Talx1E0 atalx1;
520
typedef enum E1 Talx1E1 atalx1;
521
typedef enum E2 Talx1E2 atalx1;
522
typedef enum E3 Talx1E3 atalx1;
523
typedef enum E4 Talx1E4 atalx1;
524
typedef enum E5 Talx1E5 atalx1;
525
typedef enum E6 Talx1E6 atalx1;
526
typedef enum E7 Talx1E7 atalx1;
527
typedef enum E8 Talx1E8 atalx1;
528
typedef enum E9 Talx1E9 atalx1;
529
typedef void *Talx1ptr atalx1;
530
typedef char *Talx1cptr atalx1;
531
typedef int *Talx1iptr atalx1;
532
typedef short int Talx2short atalx2;
533
typedef unsigned short int Talx2ushort atalx2;
534
typedef int Talx2int atalx2;
535
typedef unsigned int Talx2uint atalx2;
536
typedef long int Talx2long atalx2;
537
typedef unsigned long int Talx2ulong atalx2;
538
typedef long long int Talx2llong atalx2;
539
typedef unsigned long long int Talx2ullong atalx2;
540
#ifndef SKIP_COMPLEX_INT
541
typedef _Complex char Talx2cchar atalx2;
542
typedef _Complex signed char Talx2cschar atalx2;
543
typedef _Complex unsigned char Talx2cuchar atalx2;
544
typedef _Complex short int Talx2cshort atalx2;
545
typedef _Complex unsigned short int Talx2cushort atalx2;
546
typedef _Complex int Talx2cint atalx2;
547
typedef _Complex unsigned int Talx2cuint atalx2;
548
typedef _Complex long int Talx2clong atalx2;
549
typedef _Complex unsigned long int Talx2culong atalx2;
550
typedef _Complex long long int Talx2cllong atalx2;
551
typedef _Complex unsigned long long int Talx2cullong atalx2;
552
#endif
553
typedef float Talx2float atalx2;
554
typedef double Talx2double atalx2;
555
typedef long double Talx2ldouble atalx2;
556
typedef _Complex float Talx2cfloat atalx2;
557
typedef _Complex double Talx2cdouble atalx2;
558
typedef _Complex long double Talx2cldouble atalx2;
559
typedef enum E0 Talx2E0 atalx2;
560
typedef enum E1 Talx2E1 atalx2;
561
typedef enum E2 Talx2E2 atalx2;
562
typedef enum E3 Talx2E3 atalx2;
563
typedef enum E4 Talx2E4 atalx2;
564
typedef enum E5 Talx2E5 atalx2;
565
typedef enum E6 Talx2E6 atalx2;
566
typedef enum E7 Talx2E7 atalx2;
567
typedef enum E8 Talx2E8 atalx2;
568
typedef enum E9 Talx2E9 atalx2;
569
typedef void *Talx2ptr atalx2;
570
typedef char *Talx2cptr atalx2;
571
typedef int *Talx2iptr atalx2;
572
typedef int Talx4int atalx4;
573
typedef unsigned int Talx4uint atalx4;
574
typedef long int Talx4long atalx4;
575
typedef unsigned long int Talx4ulong atalx4;
576
typedef long long int Talx4llong atalx4;
577
typedef unsigned long long int Talx4ullong atalx4;
578
#ifndef SKIP_COMPLEX_INT
579
typedef _Complex short int Talx4cshort atalx4;
580
typedef _Complex unsigned short int Talx4cushort atalx4;
581
typedef _Complex int Talx4cint atalx4;
582
typedef _Complex unsigned int Talx4cuint atalx4;
583
typedef _Complex long int Talx4clong atalx4;
584
typedef _Complex unsigned long int Talx4culong atalx4;
585
typedef _Complex long long int Talx4cllong atalx4;
586
typedef _Complex unsigned long long int Talx4cullong atalx4;
587
#endif
588
typedef float Talx4float atalx4;
589
typedef double Talx4double atalx4;
590
typedef long double Talx4ldouble atalx4;
591
typedef _Complex float Talx4cfloat atalx4;
592
typedef _Complex double Talx4cdouble atalx4;
593
typedef _Complex long double Talx4cldouble atalx4;
594
typedef enum E0 Talx4E0 atalx4;
595
typedef enum E1 Talx4E1 atalx4;
596
typedef enum E2 Talx4E2 atalx4;
597
typedef enum E3 Talx4E3 atalx4;
598
typedef enum E4 Talx4E4 atalx4;
599
typedef enum E5 Talx4E5 atalx4;
600
typedef enum E6 Talx4E6 atalx4;
601
typedef enum E7 Talx4E7 atalx4;
602
typedef enum E8 Talx4E8 atalx4;
603
typedef enum E9 Talx4E9 atalx4;
604
typedef void *Talx4ptr atalx4;
605
typedef char *Talx4cptr atalx4;
606
typedef int *Talx4iptr atalx4;
607
typedef long int Taly8long ataly8;
608
typedef unsigned long int Taly8ulong ataly8;
609
typedef long long int Talx8llong atalx8;
610
typedef unsigned long long int Talx8ullong atalx8;
611
#ifndef SKIP_COMPLEX_INT
612
typedef _Complex int Talx8cint atalx8;
613
typedef _Complex unsigned int Talx8cuint atalx8;
614
typedef _Complex long int Talx8clong atalx8;
615
typedef _Complex unsigned long int Talx8culong atalx8;
616
typedef _Complex long long int Talx8cllong atalx8;
617
typedef _Complex unsigned long long int Talx8cullong atalx8;
618
#endif
619
typedef double Talx8double atalx8;
620
typedef long double Talx8ldouble atalx8;
621
typedef _Complex float Talx8cfloat atalx8;
622
typedef _Complex double Talx8cdouble atalx8;
623
typedef _Complex long double Talx8cldouble atalx8;
624
typedef void *Taly8ptr ataly8;
625
typedef char *Taly8cptr ataly8;
626
typedef int *Taly8iptr ataly8;
627
#ifndef SKIP_COMPLEX_INT
628
typedef _Complex long int Taly16clong ataly16;
629
typedef _Complex unsigned long int Taly16culong ataly16;
630
typedef _Complex long long int Talx16cllong atalx16;
631
typedef _Complex unsigned long long int Talx16cullong atalx16;
632
#endif
633
typedef _Complex double Talx16cdouble atalx16;
634
typedef _Complex long double Talx16cldouble atalx16;
635
typedef int (*Tfnptr) (void);
636
 
637
/* Bitfield macros.  In C, it is invalid to use numbers larger
638
   than type's bitsize, but we don't know the size when generating
639
   the testcases.  */
640
#define BN8(n) ((((n) - 1) & 7) + 1)
641
#define BN16(n) ((((n) - 1) & 15) + 1)
642
#define BN32(n) ((((n) - 1) & 31) + 1)
643
#define BN64(n) ((((n) - 1) & 63) + 1)
644
#define BCN(n) BN8 (n)
645
#if USHRT_MAX == 255
646
# define BSN(n) BN8 (n)
647
#elif USHRT_MAX == 65535
648
# define BSN(n) BN16 (n)
649
#elif USHRT_MAX == 4294967295U
650
# define BSN(n) BN32 (n)
651
#elif USHRT_MAX == 18446744073709551615ULL
652
# define BSN(n) BN64 (n)
653
#endif
654
#if UINT_MAX == 255
655
# define BIN(n) BN8 (n)
656
#elif UINT_MAX == 65535
657
# define BIN(n) BN16 (n)
658
#elif UINT_MAX == 4294967295U
659
# define BIN(n) BN32 (n)
660
#elif UINT_MAX == 18446744073709551615ULL
661
# define BIN(n) BN64 (n)
662
#endif
663
#if ULONG_MAX == 255
664
# define BLN(n) BN8 (n)
665
#elif ULONG_MAX == 65535
666
# define BLN(n) BN16 (n)
667
#elif ULONG_MAX == 4294967295U
668
# define BLN(n) BN32 (n)
669
#elif ULONG_MAX == 18446744073709551615ULL
670
# define BLN(n) BN64 (n)
671
#endif
672
#if ULONG_MAX == 255
673
# define BLN(n) BN8 (n)
674
#elif ULONG_MAX == 65535
675
# define BLN(n) BN16 (n)
676
#elif ULONG_MAX == 4294967295U
677
# define BLN(n) BN32 (n)
678
#elif ULONG_MAX == 18446744073709551615ULL
679
# define BLN(n) BN64 (n)
680
#endif
681
#if !defined ULLONG_MAX && defined __LONG_LONG_MAX__
682
# define ULLONG_MAX (__LONG_LONG_MAX__ * 2ULL + 1ULL)
683
#endif
684
#if ULLONG_MAX == 255
685
# define BQN(n) BN8 (n)
686
#elif ULLONG_MAX == 65535
687
# define BQN(n) BN16 (n)
688
#elif ULLONG_MAX == 4294967295U
689
# define BQN(n) BN32 (n)
690
#elif ULLONG_MAX == 18446744073709551615ULL
691
# define BQN(n) BN64 (n)
692
#endif
693
 
694
#define T(n, fields, ops) TX(n, struct, , fields, ({ ops });)
695
#define U(n, fields, ops) TX(n, union, , fields, ({ ops });)
696
#ifdef SKIP_COMPLEX_INT
697
#define TXCI(n, type, attrs, fields, ops)
698
#define TCI(n, fields, ops)
699
#define UCI(n, fields, ops)
700
#else
701
#define TXCI(n, type, attrs, fields, ops) TX(n, type, attrs, fields, ({ ops });)
702
#define TCI(n, fields, ops) TX(n, struct, , fields, ({ ops });)
703
#define UCI(n, fields, ops) TX(n, union, , fields, ({ ops });)
704
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.