3 #include "compat-common.h"
11 #define T(NAME, TYPE, INITVAL) \
12 extern TYPE g01##NAME, g02##NAME, g03##NAME, g04##NAME; \
13 extern TYPE g05##NAME, g06##NAME, g07##NAME, g08##NAME; \
14 extern TYPE g09##NAME, g10##NAME, g11##NAME, g12##NAME; \
15 extern TYPE g13##NAME, g14##NAME, g15##NAME, g16##NAME; \
17 extern void check##NAME (TYPE x, TYPE v); \
20 init##NAME (TYPE *p, TYPE v) \
28 check##NAME (g01##NAME, 1); \
29 check##NAME (g02##NAME, 2); \
30 check##NAME (g03##NAME, 3); \
31 check##NAME (g04##NAME, 4); \
32 check##NAME (g05##NAME, 5); \
33 check##NAME (g06##NAME, 6); \
34 check##NAME (g07##NAME, 7); \
35 check##NAME (g08##NAME, 8); \
36 check##NAME (g09##NAME, 9); \
37 check##NAME (g10##NAME, 10); \
38 check##NAME (g11##NAME, 11); \
39 check##NAME (g12##NAME, 12); \
40 check##NAME (g13##NAME, 13); \
41 check##NAME (g14##NAME, 14); \
42 check##NAME (g15##NAME, 15); \
43 check##NAME (g16##NAME, 16); \
47 test##NAME (TYPE x01, TYPE x02, TYPE x03, TYPE x04, \
48 TYPE x05, TYPE x06, TYPE x07, TYPE x08, \
49 TYPE x09, TYPE x10, TYPE x11, TYPE x12, \
50 TYPE x13, TYPE x14, TYPE x15, TYPE x16) \
52 check##NAME (x01, 1); \
53 check##NAME (x02, 2); \
54 check##NAME (x03, 3); \
55 check##NAME (x04, 4); \
56 check##NAME (x05, 5); \
57 check##NAME (x06, 6); \
58 check##NAME (x07, 7); \
59 check##NAME (x08, 8); \
60 check##NAME (x09, 9); \
61 check##NAME (x10, 10); \
62 check##NAME (x11, 11); \
63 check##NAME (x12, 12); \
64 check##NAME (x13, 13); \
65 check##NAME (x14, 14); \
66 check##NAME (x15, 15); \
67 check##NAME (x16, 16); \
71 testva##NAME (int n, ...) \
78 for (i = 0; i < n; i++) \
80 TYPE t = va_arg (ap, TYPE); \
81 check##NAME (t, i+1); \
88 #ifndef SKIP_COMPLEX_INT
89 T(ci
, _Complex
int, CINT (2, 3))
90 T(cl
, _Complex
long, CINT (3, 4))
91 T(cll
, _Complex
long long, CINT (5, 6))
93 T(cd
, _Complex
double, CDBL (7.0, 8.0))
94 T(cld
, _Complex
long double, CDBL (8.0, 9.0))