-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathverify_compile_gcc.duck
More file actions
406 lines (359 loc) · 29.5 KB
/
Copy pathverify_compile_gcc.duck
File metadata and controls
406 lines (359 loc) · 29.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
# duck verify_compile_gcc.duck
# duck batch parallel verify_compile_gcc.duck (pool every cell concurrently)
#
# {amd64, arm64, arm32, i386} x {-O0 -O1 -O2 -O3 -Ofast, debug (-g)} x hosted/freestanding
# plus amd64 x {base, v2, v3, v4} ISA levels
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# x86 ISA levels
# base = -march=x86-64
# v2 = -march=x86-64-v2
# v3 = -march=x86-64-v3
# v4 = -march=x86-64-v4
compile tests/compiletests/ --x86 --isa base -O0 --raw-obj -o bin/compiletests/amd64_base_O0
compile tests/compiletests/ --x86 --isa base -O2 --raw-obj -o bin/compiletests/amd64_base_O2
compile tests/compiletests/ --x86 --isa base -Ofast --raw-obj -o bin/compiletests/amd64_base_Ofast
compile tests/compiletests/ --x86 --isa base -g --raw-obj -o bin/compiletests/amd64_base_debug
compile tests/compiletests/ --x86 --isa v2 -O0 --raw-obj -o bin/compiletests/amd64_v2_O0
compile tests/compiletests/ --x86 --isa v2 -O2 --raw-obj -o bin/compiletests/amd64_v2_O2
compile tests/compiletests/ --x86 --isa v2 -Ofast --raw-obj -o bin/compiletests/amd64_v2_Ofast
compile tests/compiletests/ --x86 --isa v2 -g --raw-obj -o bin/compiletests/amd64_v2_debug
compile tests/compiletests/ --x86 --isa v3 -O2 --raw-obj -o bin/compiletests/amd64_v3_O2
compile tests/compiletests/ --x86 --isa v3 -Ofast --raw-obj -o bin/compiletests/amd64_v3_Ofast
compile tests/compiletests/ --x86 --isa v4 -O2 --raw-obj -o bin/compiletests/amd64_v4_O2
compile tests/compiletests/ --x86 --isa v4 -Ofast --raw-obj -o bin/compiletests/amd64_v4_Ofast
# the same, freestanding
compile tests/compiletests/ --x86 --isa base -O2 --raw-obj -o bin/compiletests/amd64_base_O2_k -ke
compile tests/compiletests/ --x86 --isa base -O2 --raw-obj -o bin/compiletests/amd64_base_O2_knoeh -k
compile tests/compiletests/ --x86 --isa base -Ofast --raw-obj -o bin/compiletests/amd64_base_Ofast_k -ke
compile tests/compiletests/ --x86 --isa base -Ofast --raw-obj -o bin/compiletests/amd64_base_Ofast_knoeh -k
compile tests/compiletests/ --x86 --isa v2 -O2 --raw-obj -o bin/compiletests/amd64_v2_O2_k -ke
compile tests/compiletests/ --x86 --isa v2 -O2 --raw-obj -o bin/compiletests/amd64_v2_O2_knoeh -k
compile tests/compiletests/ --x86 --isa v3 -O2 --raw-obj -o bin/compiletests/amd64_v3_O2_k -ke
compile tests/compiletests/ --x86 --isa v3 -O2 --raw-obj -o bin/compiletests/amd64_v3_O2_knoeh -k
compile tests/compiletests/ --x86 --isa v4 -O2 --raw-obj -o bin/compiletests/amd64_v4_O2_k -ke
compile tests/compiletests/ --x86 --isa v4 -O2 --raw-obj -o bin/compiletests/amd64_v4_O2_knoeh -k
# and link real binaries at the two ends of the range
compile tests/compiletests/ --x86 --isa base -O2 -o bin/compiletests/amd64_base_O2_link
compile tests/compiletests/ --x86 --isa v4 -O2 -o bin/compiletests/amd64_v4_O2_link
# hosted
# ---- amd64 (x86-64) ----
compile tests/compiletests/ --x86 -O0 --raw-obj -o bin/compiletests/amd64_O0
compile tests/compiletests/ --x86 -O1 --raw-obj -o bin/compiletests/amd64_O1
compile tests/compiletests/ --x86 -O2 --raw-obj -o bin/compiletests/amd64_O2
compile tests/compiletests/ --x86 -O3 --raw-obj -o bin/compiletests/amd64_O3
compile tests/compiletests/ --x86 -Ofast --raw-obj -o bin/compiletests/amd64_Ofast
compile tests/compiletests/ --x86 -g --raw-obj -o bin/compiletests/amd64_debug
# ---- arm64 (armv8-a) ----
compile tests/compiletests/ --arm64 -O0 --raw-obj -o bin/compiletests/arm64_O0
compile tests/compiletests/ --arm64 -O1 --raw-obj -o bin/compiletests/arm64_O1
compile tests/compiletests/ --arm64 -O2 --raw-obj -o bin/compiletests/arm64_O2
compile tests/compiletests/ --arm64 -O3 --raw-obj -o bin/compiletests/arm64_O3
compile tests/compiletests/ --arm64 -Ofast --raw-obj -o bin/compiletests/arm64_Ofast
compile tests/compiletests/ --arm64 -g --raw-obj -o bin/compiletests/arm64_debug
# ---- arm32 (armv7-a, NEON, hard-float) ----
compile tests/compiletests/ --arm -O0 --raw-obj -o bin/compiletests/arm32_O0
compile tests/compiletests/ --arm -O1 --raw-obj -o bin/compiletests/arm32_O1
compile tests/compiletests/ --arm -O2 --raw-obj -o bin/compiletests/arm32_O2
compile tests/compiletests/ --arm -O3 --raw-obj -o bin/compiletests/arm32_O3
compile tests/compiletests/ --arm -Ofast --raw-obj -o bin/compiletests/arm32_Ofast
compile tests/compiletests/ --arm -g --raw-obj -o bin/compiletests/arm32_debug
# ---- i386 (x86, 32-bit) ----
compile tests/compiletests/ --i386 -O0 --raw-obj -o bin/compiletests/i386_O0
compile tests/compiletests/ --i386 -O1 --raw-obj -o bin/compiletests/i386_O1
compile tests/compiletests/ --i386 -O2 --raw-obj -o bin/compiletests/i386_O2
compile tests/compiletests/ --i386 -O3 --raw-obj -o bin/compiletests/i386_O3
compile tests/compiletests/ --i386 -Ofast --raw-obj -o bin/compiletests/i386_Ofast
compile tests/compiletests/ --i386 -g --raw-obj -o bin/compiletests/i386_debug
# freestanding
# ---- amd64 (x86-64) ----
compile tests/compiletests/ --x86 -O0 --raw-obj -o bin/compiletests/amd64_O0_k -ke
compile tests/compiletests/ --x86 -O0 --raw-obj -o bin/compiletests/amd64_O0_knoeh -k
compile tests/compiletests/ --x86 -O1 --raw-obj -o bin/compiletests/amd64_O1_k -ke
compile tests/compiletests/ --x86 -O1 --raw-obj -o bin/compiletests/amd64_O1_knoeh -k
compile tests/compiletests/ --x86 -O2 --raw-obj -o bin/compiletests/amd64_O2_k -ke
compile tests/compiletests/ --x86 -O2 --raw-obj -o bin/compiletests/amd64_O2_knoeh -k
compile tests/compiletests/ --x86 -O3 --raw-obj -o bin/compiletests/amd64_O3_k -ke
compile tests/compiletests/ --x86 -O3 --raw-obj -o bin/compiletests/amd64_O3_knoeh -k
compile tests/compiletests/ --x86 -Ofast --raw-obj -o bin/compiletests/amd64_Ofast_k -ke
compile tests/compiletests/ --x86 -Ofast --raw-obj -o bin/compiletests/amd64_Ofast_knoeh -k
compile tests/compiletests/ --x86 -g --raw-obj -o bin/compiletests/amd64_debug_k -ke
compile tests/compiletests/ --x86 -g --raw-obj -o bin/compiletests/amd64_debug_knoeh -k
# ---- arm64 (armv8-a) ----
compile tests/compiletests/ --arm64 -O0 --raw-obj -o bin/compiletests/arm64_O0_k -ke
compile tests/compiletests/ --arm64 -O0 --raw-obj -o bin/compiletests/arm64_O0_knoeh -k
compile tests/compiletests/ --arm64 -O1 --raw-obj -o bin/compiletests/arm64_O1_k -ke
compile tests/compiletests/ --arm64 -O1 --raw-obj -o bin/compiletests/arm64_O1_knoeh -k
compile tests/compiletests/ --arm64 -O2 --raw-obj -o bin/compiletests/arm64_O2_k -ke
compile tests/compiletests/ --arm64 -O2 --raw-obj -o bin/compiletests/arm64_O2_knoeh -k
compile tests/compiletests/ --arm64 -O3 --raw-obj -o bin/compiletests/arm64_O3_k -ke
compile tests/compiletests/ --arm64 -O3 --raw-obj -o bin/compiletests/arm64_O3_knoeh -k
compile tests/compiletests/ --arm64 -Ofast --raw-obj -o bin/compiletests/arm64_Ofast_k -ke
compile tests/compiletests/ --arm64 -Ofast --raw-obj -o bin/compiletests/arm64_Ofast_knoeh -k
compile tests/compiletests/ --arm64 -g --raw-obj -o bin/compiletests/arm64_debug_k -ke
compile tests/compiletests/ --arm64 -g --raw-obj -o bin/compiletests/arm64_debug_knoeh -k
# ---- arm32 (armv7-a, NEON, hard-float) ----
compile tests/compiletests/ --arm -O0 --raw-obj -o bin/compiletests/arm32_O0_k -ke
compile tests/compiletests/ --arm -O0 --raw-obj -o bin/compiletests/arm32_O0_knoeh -k
compile tests/compiletests/ --arm -O1 --raw-obj -o bin/compiletests/arm32_O1_k -ke
compile tests/compiletests/ --arm -O1 --raw-obj -o bin/compiletests/arm32_O1_knoeh -k
compile tests/compiletests/ --arm -O2 --raw-obj -o bin/compiletests/arm32_O2_k -ke
compile tests/compiletests/ --arm -O2 --raw-obj -o bin/compiletests/arm32_O2_knoeh -k
compile tests/compiletests/ --arm -O3 --raw-obj -o bin/compiletests/arm32_O3_k -ke
compile tests/compiletests/ --arm -O3 --raw-obj -o bin/compiletests/arm32_O3_knoeh -k
compile tests/compiletests/ --arm -Ofast --raw-obj -o bin/compiletests/arm32_Ofast_k -ke
compile tests/compiletests/ --arm -Ofast --raw-obj -o bin/compiletests/arm32_Ofast_knoeh -k
compile tests/compiletests/ --arm -g --raw-obj -o bin/compiletests/arm32_debug_k -ke
compile tests/compiletests/ --arm -g --raw-obj -o bin/compiletests/arm32_debug_knoeh -k
# ---- i386 (x86, 32-bit) ----
compile tests/compiletests/ --i386 -O0 --raw-obj -o bin/compiletests/i386_O0_k -ke
compile tests/compiletests/ --i386 -O0 --raw-obj -o bin/compiletests/i386_O0_knoeh -k
compile tests/compiletests/ --i386 -O1 --raw-obj -o bin/compiletests/i386_O1_k -ke
compile tests/compiletests/ --i386 -O1 --raw-obj -o bin/compiletests/i386_O1_knoeh -k
compile tests/compiletests/ --i386 -O2 --raw-obj -o bin/compiletests/i386_O2_k -ke
compile tests/compiletests/ --i386 -O2 --raw-obj -o bin/compiletests/i386_O2_knoeh -k
compile tests/compiletests/ --i386 -O3 --raw-obj -o bin/compiletests/i386_O3_k -ke
compile tests/compiletests/ --i386 -O3 --raw-obj -o bin/compiletests/i386_O3_knoeh -k
compile tests/compiletests/ --i386 -Ofast --raw-obj -o bin/compiletests/i386_Ofast_k -ke
compile tests/compiletests/ --i386 -Ofast --raw-obj -o bin/compiletests/i386_Ofast_knoeh -k
compile tests/compiletests/ --i386 -g --raw-obj -o bin/compiletests/i386_debug_k -ke
compile tests/compiletests/ --i386 -g --raw-obj -o bin/compiletests/i386_debug_knoeh -k
# actually compile and link full bins
# hosted
# ---- amd64 (x86-64) ----
compile tests/compiletests/ --x86 -O0 -o bin/compiletests/amd64_O0_link
compile tests/compiletests/ --x86 -O1 -o bin/compiletests/amd64_O1_link
compile tests/compiletests/ --x86 -O2 -o bin/compiletests/amd64_O2_link
compile tests/compiletests/ --x86 -O3 -o bin/compiletests/amd64_O3_link
compile tests/compiletests/ --x86 -Ofast -o bin/compiletests/amd64_Ofast_link
compile tests/compiletests/ --x86 -g -o bin/compiletests/amd64_debug_link
# ---- arm64 (armv8-a) ----
compile tests/compiletests/ --arm64 -O0 -o bin/compiletests/arm64_O0_link
compile tests/compiletests/ --arm64 -O1 -o bin/compiletests/arm64_O1_link
compile tests/compiletests/ --arm64 -O2 -o bin/compiletests/arm64_O2_link
compile tests/compiletests/ --arm64 -O3 -o bin/compiletests/arm64_O3_link
compile tests/compiletests/ --arm64 -Ofast -o bin/compiletests/arm64_Ofast_link
compile tests/compiletests/ --arm64 -g -o bin/compiletests/arm64_debug_link
# ---- arm32 (armv7-a, NEON, hard-float) ----
compile tests/compiletests/ --arm -O0 -o bin/compiletests/arm32_O0_link
compile tests/compiletests/ --arm -O1 -o bin/compiletests/arm32_O1_link
compile tests/compiletests/ --arm -O2 -o bin/compiletests/arm32_O2_link
compile tests/compiletests/ --arm -O3 -o bin/compiletests/arm32_O3_link
compile tests/compiletests/ --arm -Ofast -o bin/compiletests/arm32_Ofast_link
compile tests/compiletests/ --arm -g -o bin/compiletests/arm32_debug_link
# ---- i386 (x86, 32-bit) ----
compile tests/compiletests/ --i386 -O0 -o bin/compiletests/i386_O0_link
compile tests/compiletests/ --i386 -O1 -o bin/compiletests/i386_O1_link
compile tests/compiletests/ --i386 -O2 -o bin/compiletests/i386_O2_link
compile tests/compiletests/ --i386 -O3 -o bin/compiletests/i386_O3_link
compile tests/compiletests/ --i386 -Ofast -o bin/compiletests/i386_Ofast_link
compile tests/compiletests/ --i386 -g -o bin/compiletests/i386_debug_link
# freestanding
# ---- amd64 (x86-64) ----
compile tests/compiletests/ --x86 -O0 -o bin/compiletests/amd64_O0_k_link -ke
compile tests/compiletests/ --x86 -O0 -o bin/compiletests/amd64_O0_knoeh_link -k
compile tests/compiletests/ --x86 -O1 -o bin/compiletests/amd64_O1_k_link -ke
compile tests/compiletests/ --x86 -O1 -o bin/compiletests/amd64_O1_knoeh_link -k
compile tests/compiletests/ --x86 -O2 -o bin/compiletests/amd64_O2_k_link -ke
compile tests/compiletests/ --x86 -O2 -o bin/compiletests/amd64_O2_knoeh_link -k
compile tests/compiletests/ --x86 -O3 -o bin/compiletests/amd64_O3_k_link -ke
compile tests/compiletests/ --x86 -O3 -o bin/compiletests/amd64_O3_knoeh_link -k
compile tests/compiletests/ --x86 -Ofast -o bin/compiletests/amd64_Ofast_k_link -ke
compile tests/compiletests/ --x86 -Ofast -o bin/compiletests/amd64_Ofast_knoeh_link -k
compile tests/compiletests/ --x86 -g -o bin/compiletests/amd64_debug_k_link -ke
compile tests/compiletests/ --x86 -g -o bin/compiletests/amd64_debug_knoeh_link -k
# ---- arm64 (armv8-a) ----
compile tests/compiletests/ --arm64 -O0 -o bin/compiletests/arm64_O0_k_link -ke
compile tests/compiletests/ --arm64 -O0 -o bin/compiletests/arm64_O0_knoeh_link -k
compile tests/compiletests/ --arm64 -O1 -o bin/compiletests/arm64_O1_k_link -ke
compile tests/compiletests/ --arm64 -O1 -o bin/compiletests/arm64_O1_knoeh_link -k
compile tests/compiletests/ --arm64 -O2 -o bin/compiletests/arm64_O2_k_link -ke
compile tests/compiletests/ --arm64 -O2 -o bin/compiletests/arm64_O2_knoeh_link -k
compile tests/compiletests/ --arm64 -O3 -o bin/compiletests/arm64_O3_k_link -ke
compile tests/compiletests/ --arm64 -O3 -o bin/compiletests/arm64_O3_knoeh_link -k
compile tests/compiletests/ --arm64 -Ofast -o bin/compiletests/arm64_Ofast_k_link -ke
compile tests/compiletests/ --arm64 -Ofast -o bin/compiletests/arm64_Ofast_knoeh_link -k
compile tests/compiletests/ --arm64 -g -o bin/compiletests/arm64_debug_k_link -ke
compile tests/compiletests/ --arm64 -g -o bin/compiletests/arm64_debug_knoeh_link -k
# ---- arm32 (armv7-a, NEON, hard-float) ----
compile tests/compiletests/ --arm -O0 -o bin/compiletests/arm32_O0_k_link -ke
compile tests/compiletests/ --arm -O0 -o bin/compiletests/arm32_O0_knoeh_link -k
compile tests/compiletests/ --arm -O1 -o bin/compiletests/arm32_O1_k_link -ke
compile tests/compiletests/ --arm -O1 -o bin/compiletests/arm32_O1_knoeh_link -k
compile tests/compiletests/ --arm -O2 -o bin/compiletests/arm32_O2_k_link -ke
compile tests/compiletests/ --arm -O2 -o bin/compiletests/arm32_O2_knoeh_link -k
compile tests/compiletests/ --arm -O3 -o bin/compiletests/arm32_O3_k_link -ke
compile tests/compiletests/ --arm -O3 -o bin/compiletests/arm32_O3_knoeh_link -k
compile tests/compiletests/ --arm -Ofast -o bin/compiletests/arm32_Ofast_k_link -ke
compile tests/compiletests/ --arm -Ofast -o bin/compiletests/arm32_Ofast_knoeh_link -k
compile tests/compiletests/ --arm -g -o bin/compiletests/arm32_debug_k_link -ke
compile tests/compiletests/ --arm -g -o bin/compiletests/arm32_debug_knoeh_link -k
# ---- i386 (x86, 32-bit) ----
compile tests/compiletests/ --i386 -O0 -o bin/compiletests/i386_O0_k_link -ke
compile tests/compiletests/ --i386 -O0 -o bin/compiletests/i386_O0_knoeh_link -k
compile tests/compiletests/ --i386 -O1 -o bin/compiletests/i386_O1_k_link -ke
compile tests/compiletests/ --i386 -O1 -o bin/compiletests/i386_O1_knoeh_link -k
compile tests/compiletests/ --i386 -O2 -o bin/compiletests/i386_O2_k_link -ke
compile tests/compiletests/ --i386 -O2 -o bin/compiletests/i386_O2_knoeh_link -k
compile tests/compiletests/ --i386 -O3 -o bin/compiletests/i386_O3_k_link -ke
compile tests/compiletests/ --i386 -O3 -o bin/compiletests/i386_O3_knoeh_link -k
compile tests/compiletests/ --i386 -Ofast -o bin/compiletests/i386_Ofast_k_link -ke
compile tests/compiletests/ --i386 -Ofast -o bin/compiletests/i386_Ofast_knoeh_link -k
compile tests/compiletests/ --i386 -g -o bin/compiletests/i386_debug_k_link -ke
compile tests/compiletests/ --i386 -g -o bin/compiletests/i386_debug_knoeh_link -k
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# c++26 reflection (-freflection)
#
# every cell above builds tests/compiletests/reflect.cpp with the gate OFF -- that is the load
# bearing half, since the whole directory is swept and reflect.hpp must collapse to nothing on
# arm, arm64, i386 and under both exception gates. these rows are the other half: the same file
# with the gate ON.
#
# x86 only, and no --arm/--arm64 rows are possible: the cross toolchains are gcc 15, which has no
# -freflection. duck rejects that combination outright rather than emitting a command gcc will
# refuse. the deeper reflection matrix lives in tests/reflect/reflect.duck.
compile tests/compiletests/reflect.cpp --x86 --isa base -O0 -freflection --raw-obj -o bin/compiletests/refl_base_O0
compile tests/compiletests/reflect.cpp --x86 --isa base -Ofast -freflection --raw-obj -o bin/compiletests/refl_base_Ofast
compile tests/compiletests/reflect.cpp --x86 --isa v3 -O2 -freflection --raw-obj -o bin/compiletests/refl_v3_O2
compile tests/compiletests/reflect.cpp --x86 --isa v4 -Ofast -freflection --raw-obj -o bin/compiletests/refl_v4_Ofast
compile tests/compiletests/reflect.cpp --x86 -g -freflection --raw-obj -o bin/compiletests/refl_debug
compile tests/compiletests/reflect.cpp --x86 --isa base -O2 -freflection -o bin/compiletests/refl_base_O2_k -k
compile tests/compiletests/reflect.cpp --x86 --isa base -O2 -freflection -o bin/compiletests/refl_base_O2_ke -ke
compile tests/compiletests/reflect.cpp --x86 -Ofast -freflection -o bin/compiletests/refl_Ofast_k -k
compile tests/compiletests/reflect.cpp --x86 -Ofast -freflection -o bin/compiletests/refl_Ofast_ke -ke
# %%%%%%%%%%%%%%
# chrono
compile tests/compiletests/chrono.cpp --x86 --isa base -O0 --def MICRON_CHRONO_VDSO=1 --raw-obj -o bin/compiletests/chrono_vdso_base_O0
compile tests/compiletests/chrono.cpp --x86 --isa base -Ofast --def MICRON_CHRONO_VDSO=1 --raw-obj -o bin/compiletests/chrono_vdso_base_Ofast
compile tests/compiletests/chrono.cpp --x86 --isa v3 -O2 --def MICRON_CHRONO_VDSO=1 --raw-obj -o bin/compiletests/chrono_vdso_v3_O2
compile tests/compiletests/chrono.cpp --x86 -g --def MICRON_CHRONO_VDSO=1 --raw-obj -o bin/compiletests/chrono_vdso_debug
compile tests/compiletests/chrono.cpp --x86 -O2 --def MICRON_CHRONO_VDSO=1 -o bin/compiletests/chrono_vdso_O2_k -k
compile tests/compiletests/chrono.cpp --x86 -O2 --def MICRON_CHRONO_VDSO=1 -o bin/compiletests/chrono_vdso_O2_ke -ke
compile tests/compiletests/chrono.cpp --arm64 -Ofast --def MICRON_CHRONO_VDSO=1 --raw-obj -o bin/compiletests/chrono_vdso_arm64_Ofast
compile tests/compiletests/chrono.cpp --arm -O0 --def MICRON_CHRONO_ARM32_CNTVCT=1 --raw-obj -o bin/compiletests/chrono_cntvct_O0
compile tests/compiletests/chrono.cpp --arm -Ofast --def MICRON_CHRONO_ARM32_CNTVCT=1 --raw-obj -o bin/compiletests/chrono_cntvct_Ofast
compile tests/compiletests/chrono.cpp --arm -O2 --def MICRON_CHRONO_ARM32_CNTVCT=1 -o bin/compiletests/chrono_cntvct_O2_k -k
compile tests/compiletests/chrono.cpp --arm -O2 --def MICRON_CHRONO_ARM32_CNTVCT=1 -o bin/compiletests/chrono_cntvct_O2_ke -ke
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# elf
compile tests/compiletests/elf.cpp --i386 -O0 -o bin/compiletests/elf_i386_O0_link
compile tests/compiletests/elf.cpp --i386 -Ofast -o bin/compiletests/elf_i386_Ofast_link
compile tests/compiletests/elf.cpp --arm -O0 -o bin/compiletests/elf_arm32_O0_link
compile tests/compiletests/elf.cpp --arm -Ofast -o bin/compiletests/elf_arm32_Ofast_link
compile tests/compiletests/elf.cpp --i386 -O2 -o bin/compiletests/elf_i386_O2_k -k
compile tests/compiletests/elf.cpp --i386 -O2 -o bin/compiletests/elf_i386_O2_ke -ke
compile tests/compiletests/elf.cpp --arm -O2 -o bin/compiletests/elf_arm32_O2_k -k
compile tests/compiletests/elf.cpp --arm -O2 -o bin/compiletests/elf_arm32_O2_ke -ke
compile tests/compiletests/dynamic.cpp --i386 -O0 -o bin/compiletests/dyn_i386_O0_link
compile tests/compiletests/dynamic.cpp --i386 -Ofast -o bin/compiletests/dyn_i386_Ofast_link
compile tests/compiletests/dynamic.cpp --arm -O0 -o bin/compiletests/dyn_arm32_O0_link
compile tests/compiletests/dynamic.cpp --arm -Ofast -o bin/compiletests/dyn_arm32_Ofast_link
compile tests/compiletests/dynamic.cpp --i386 -O2 -o bin/compiletests/dyn_i386_O2_k -k
compile tests/compiletests/dynamic.cpp --i386 -O2 -o bin/compiletests/dyn_i386_O2_ke -ke
compile tests/compiletests/dynamic.cpp --arm -O2 -o bin/compiletests/dyn_arm32_O2_k -k
compile tests/compiletests/dynamic.cpp --arm -O2 -o bin/compiletests/dyn_arm32_O2_ke -ke
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# regex
compile tests/compiletests/regex.cpp --x86 --isa base -O0 -o bin/compiletests/regex_base_O0_link
compile tests/compiletests/regex.cpp --x86 --isa base -Ofast -o bin/compiletests/regex_base_Ofast_link
compile tests/compiletests/regex.cpp --x86 --isa v2 -Ofast -o bin/compiletests/regex_v2_Ofast_link
compile tests/compiletests/regex.cpp --i386 -Ofast -o bin/compiletests/regex_i386_Ofast_link
compile tests/compiletests/regex.cpp --arm -Ofast -o bin/compiletests/regex_arm32_Ofast_link
compile tests/compiletests/regex.cpp --arm64 -Ofast -o bin/compiletests/regex_arm64_Ofast_link
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# function
compile tests/compiletests/function.cpp --i386 -Ofast -o bin/compiletests/function_i386_Ofast_link
compile tests/compiletests/function.cpp --arm -Ofast -o bin/compiletests/function_arm32_Ofast_link
compile tests/compiletests/function.cpp --arm64 -Ofast -o bin/compiletests/function_arm64_Ofast_link
compile tests/compiletests/function.cpp --x86 --isa base -O2 -o bin/compiletests/function_base_O2_k -k
compile tests/compiletests/function.cpp --x86 --isa base -O2 -o bin/compiletests/function_base_O2_ke -ke
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# abcmalloc hardening
compile tests/rigor/abcmalloc_harden.cpp --x86 -Ofast --def MICRON_ABC_ZERO_ON_FREE=true -o bin/compiletests/abc_harden_zero_x86
compile tests/rigor/abcmalloc_harden.cpp --x86 -Ofast --def MICRON_ABC_POISON_ON_FREE=true -o bin/compiletests/abc_harden_poison_x86
compile tests/rigor/abcmalloc_harden.cpp --x86 -Ofast --def MICRON_ABC_REDZONE=true -o bin/compiletests/abc_harden_rz_x86
compile tests/rigor/abcmalloc_harden.cpp --x86 -Ofast --def MICRON_ABC_ENFORCE_PROVENANCE=true -o bin/compiletests/abc_harden_prov_x86
compile tests/rigor/abcmalloc_harden.cpp --i386 -Ofast --def MICRON_ABC_REDZONE=true -o bin/compiletests/abc_harden_rz_i386
compile tests/rigor/abcmalloc_harden.cpp --arm -Ofast --def MICRON_ABC_REDZONE=true -o bin/compiletests/abc_harden_rz_arm32
compile tests/rigor/abcmalloc_harden.cpp --arm64 -Ofast --def MICRON_ABC_ZERO_ON_FREE=true -o bin/compiletests/abc_harden_zero_arm64
compile tests/rigor/abcmalloc_harden.cpp --x86 --isa base -O2 --def MICRON_ABC_REDZONE=true -o bin/compiletests/abc_harden_rz_base
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# vk host allocator
# the tests/compiletests/ sweep above already carries vk_headers.cpp with the counters OFF; these
# rows are the ON column. the block header keeps one layout either way, so what is actually under
# test here is the gated code, not a second ABI.
compile tests/compiletests/vk_headers.cpp --x86 -Ofast --def MICRON_VK_HOST_STATS -o bin/compiletests/vk_stats_x86
compile tests/compiletests/vk_headers.cpp --i386 -Ofast --def MICRON_VK_HOST_STATS -o bin/compiletests/vk_stats_i386
compile tests/compiletests/vk_headers.cpp --arm -Ofast --def MICRON_VK_HOST_STATS -o bin/compiletests/vk_stats_arm32
compile tests/compiletests/vk_headers.cpp --arm64 -Ofast --def MICRON_VK_HOST_STATS -o bin/compiletests/vk_stats_arm64
compile tests/compiletests/vk_headers.cpp --x86 --isa base -O2 --def MICRON_VK_HOST_STATS -o bin/compiletests/vk_stats_base
compile tests/rigor/vk_allocator.cpp --x86 -Ofast --def MICRON_VK_HOST_STATS -o bin/compiletests/vk_alloc_stats_x86
compile tests/rigor/vk_allocator.cpp --arm -Ofast --def MICRON_VK_HOST_STATS -o bin/compiletests/vk_alloc_stats_arm32
# %%%%%%%%%%%%%%%%%%%%%%%%%%%
# libstdc++ interop
compile tests/rigor/libc_interop.cpp --x86 -O2 -o bin/compiletests/libc_interop_x86
compile tests/rigor/libc_interop.cpp --i386 -O2 -o bin/compiletests/libc_interop_i386
compile tests/rigor/libc_interop.cpp --arm -O2 -o bin/compiletests/libc_interop_arm32
compile tests/rigor/libc_interop.cpp --arm64 -O2 -o bin/compiletests/libc_interop_arm64
compile tests/rigor/libc_interop.cpp --x86 --isa base -O2 -o bin/compiletests/libc_interop_base
compile tests/rigor/libc_interop.cpp --x86 -O2 --def MICRON_INTEROP_STD_FIRST -o bin/compiletests/libc_interop_stdfirst_x86
compile tests/rigor/libc_interop.cpp --i386 -O2 --def MICRON_INTEROP_STD_FIRST -o bin/compiletests/libc_interop_stdfirst_i386
compile tests/rigor/libc_interop.cpp --arm -O2 --def MICRON_INTEROP_STD_FIRST -o bin/compiletests/libc_interop_stdfirst_arm32
compile tests/rigor/libc_interop.cpp --arm64 -O2 --def MICRON_INTEROP_STD_FIRST -o bin/compiletests/libc_interop_stdfirst_arm64
compile tests/rigor/libc_interop.cpp --x86 --isa base -O2 --def MICRON_INTEROP_STD_FIRST -o bin/compiletests/libc_interop_stdfirst_base
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# cacheline ops
compile tests/rigor/cacheline_ops.cpp --x86 -Ofast -o bin/compiletests/cacheline_x86
compile tests/rigor/cacheline_ops.cpp --i386 -Ofast -o bin/compiletests/cacheline_i386
compile tests/rigor/cacheline_ops.cpp --arm -Ofast -o bin/compiletests/cacheline_arm32
compile tests/rigor/cacheline_ops.cpp --arm64 -Ofast -o bin/compiletests/cacheline_arm64
compile tests/rigor/cacheline_ops.cpp --x86 --isa base -O2 -o bin/compiletests/cacheline_base
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# allocator modes
# the directory sweep above covers the disabled/default ABI on every target.
compile tests/compiletests/allocator_types.cpp --x86 --isa base -O2 --raw-obj --def MICRON_ALLOCATOR_STATS --def MICRON_ABC_STATS -o bin/compiletests/allocator_stats_x86
compile tests/compiletests/allocator_types.cpp --i386 -O2 --raw-obj --def MICRON_ALLOCATOR_STATS --def MICRON_ABC_STATS -o bin/compiletests/allocator_stats_i386
compile tests/compiletests/allocator_types.cpp --arm -O2 --raw-obj --def MICRON_ALLOCATOR_STATS --def MICRON_ABC_STATS -o bin/compiletests/allocator_stats_arm32
compile tests/compiletests/allocator_types.cpp --arm64 -O2 --raw-obj --def MICRON_ALLOCATOR_STATS --def MICRON_ABC_STATS -o bin/compiletests/allocator_stats_arm64
compile tests/compiletests/allocator_stats_codegen.cpp --x86 --isa base -O2 --raw-obj --def MICRON_ALLOCATOR_STATS -o bin/compiletests/allocator_stats_codegen_x86
compile tests/compiletests/allocator_types.cpp --x86 --isa base -O2 --raw-obj --def MICRON_ABC_PERSISTENT -o bin/compiletests/allocator_persistent_x86
compile tests/compiletests/allocator_types.cpp --i386 -O2 --raw-obj --def MICRON_ABC_PERSISTENT -o bin/compiletests/allocator_persistent_i386
compile tests/compiletests/allocator_types.cpp --arm -O2 --raw-obj --def MICRON_ABC_PERSISTENT -o bin/compiletests/allocator_persistent_arm32
compile tests/compiletests/allocator_types.cpp --arm64 -O2 --raw-obj --def MICRON_ABC_PERSISTENT -o bin/compiletests/allocator_persistent_arm64
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# graph
compile tests/compiletests/graph.cpp --x86 --isa base -O0 --raw-obj -o bin/compiletests/graph_base_O0
compile tests/compiletests/graph.cpp --x86 -Ofast --raw-obj -o bin/compiletests/graph_native_Ofast
compile tests/compiletests/graph.cpp --i386 -O2 --raw-obj -o bin/compiletests/graph_i386_O2
compile tests/compiletests/graph.cpp --arm -O2 --raw-obj -o bin/compiletests/graph_arm32_O2
compile tests/compiletests/graph.cpp --arm64 -O2 --raw-obj -o bin/compiletests/graph_arm64_O2
compile tests/compiletests/graph.cpp --x86 --isa base -O2 --raw-obj -k -o bin/compiletests/graph_base_O2_k
compile tests/compiletests/graph.cpp --x86 --isa base -O2 --raw-obj -ke -o bin/compiletests/graph_base_O2_ke
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# opt-in compute DAG and thread-pool adapter
compile tests/compiletests/compute.cpp --x86 --isa base -O0 --raw-obj -o bin/compiletests/compute_base_O0
compile tests/compiletests/compute.cpp --x86 -Ofast --raw-obj -o bin/compiletests/compute_native_Ofast
compile tests/compiletests/compute.cpp --i386 -O2 --raw-obj -o bin/compiletests/compute_i386_O2
compile tests/compiletests/compute.cpp --arm -O2 --raw-obj -o bin/compiletests/compute_arm32_O2
compile tests/compiletests/compute.cpp --arm64 -O2 --raw-obj -o bin/compiletests/compute_arm64_O2
compile tests/compiletests/compute.cpp --x86 --isa base -O2 --raw-obj -k -o bin/compiletests/compute_base_O2_k
compile tests/compiletests/compute.cpp --x86 --isa base -O2 --raw-obj -ke -o bin/compiletests/compute_base_O2_ke
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# the crt path override
build tests/compiletests/containers.cpp --x86 -Ofast -k --start ./start -i . -i ./src -o bin/compiletests/amd64_k_startdir
build tests/compiletests/containers.cpp --x86 -Ofast -ke --start ./start -i . -i ./src -o bin/compiletests/amd64_ke_startdir
build tests/compiletests/containers.cpp --x86 -Ofast -k --direct --start ./start -i . -i ./src -o bin/compiletests/amd64_k_direct
# Keep the ARM64 CRT override cell focused on startup plumbing; the C ABI shim
# does not pull the full allocator/math surface into this one targeted row.
build tests/memory/free/cabi_shims_freestanding.cpp --arm64 -Ofast -k --start ./start -i . -i ./src -o bin/compiletests/arm64_k_startdir
build tests/build/longdouble_freestanding_link.cpp --arm64 -Ofast -k --start ./start -i . -i ./src -o bin/compiletests/arm64_k_longdouble_link
build tests/build/longdouble_freestanding_link.cpp --arm64 -Ofast -ke --start ./start -i . -i ./src -o bin/compiletests/arm64_ke_longdouble_link
build tests/build/longdouble_freestanding_link.cpp --x86 -Ofast -k --start ./start -i . -i ./src -o bin/compiletests/amd64_k_longdouble_link
# the mx entry stubs. --mx swaps start*.s for mx/start*.s (__micron_mxc, the entry takes a
# descriptor); --cont links mx/cont*.s alone, which defines _continue and no _start at all, and
# needs both attach macros because they are what compile the body the stub calls.
build tests/mx_entry_sim.cpp --x86 -Ofast -k --mx --start ./start -i . -i ./src -o bin/compiletests/amd64_k_mx
build tests/mx_entry_sim.cpp --i386 -Ofast -k --mx --start ./start -i . -i ./src -o bin/compiletests/i386_k_mx
build tests/attach_cont.cpp --x86 -Ofast -k --start ./start -i . -i ./src -o bin/compiletests/amd64_k_continuec
compile tests/support/mx_cont_stub.cpp --x86 -O2 -k --raw-obj --cont --start ./start -i . -i ./src --def MICRON_ATTACH_MODULE --def MICRON_MX_CONTINUATION -o bin/compiletests/amd64_k_cont
compile tests/support/mx_cont_stub.cpp --arm -O2 -k --raw-obj --cont --marm --mtp cp15 --start ./start -i . -i ./src --def MICRON_ATTACH_MODULE --def MICRON_MX_CONTINUATION -o bin/compiletests/arm32_k_cont
compile tests/compiletests/abc_inspect_layout.cpp --x86 -O2 --raw-obj --ubsan -o bin/compiletests/amd64_ubsan_abc_inspect