1 # Copyright (C) 2012-2020 Free Software Foundation, Inc.
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 3 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
20 proc gas_64_check { } {
24 set status [gas_host_run "$NM $NMFLAGS --help" ""]
25 return [regexp "targets:.*x86-64" [lindex $status 1]];
28 proc gas_32_check { } {
32 set status [gas_host_run "$NM $NMFLAGS --help" ""]
33 return [regexp "targets:.*i386" [lindex $status 1]];
36 proc gas_bfd64_check { } {
39 set status [gas_host_run "$AS --help" ""]
40 return [regexp "32bit/64bit/x32" [lindex $status 1]];
43 if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]] then {
46 set old_ASFLAGS "$ASFLAGS"
47 set ASFLAGS "$ASFLAGS --32"
49 run_list_test "float" "-al -mmnemonic=att"
50 run_list_test "general" "-al --listing-lhs-width=2"
51 run_list_test "inval" "-al"
52 run_list_test "inval-16" "-al"
53 run_list_test "segment" "-al"
54 run_list_test "inval-seg" "-al"
55 run_list_test "inval-reg" "-al"
56 run_list_test "modrm" "-al --listing-lhs-width=2"
58 run_dump_test "opcode"
59 run_dump_test "opcode-intel"
60 run_dump_test "opcode-suffix"
62 run_dump_test "intel-intel"
63 run_dump_test "intel16"
64 run_list_test "intelbad" ""
65 run_dump_test "intelok"
66 run_dump_test "prefix"
67 run_list_test "prefix32" "-al"
70 run_dump_test "katmai"
72 run_dump_test "movz32"
73 run_dump_test "relax-1"
74 run_dump_test "relax-2"
75 run_dump_test "ssemmx2"
77 run_dump_test "sse2-16bit"
80 run_dump_test "sse3-intel"
82 run_dump_test "sib-intel"
84 run_dump_test "disp-intel"
85 run_dump_test "disp32"
87 run_dump_test "vmfunc"
89 run_dump_test "suffix"
90 run_dump_test "suffix-intel"
91 run_list_test "suffix-bad"
92 run_dump_test "immed32"
94 run_list_test "equ-bad"
95 run_dump_test "divide"
96 run_dump_test "padlock"
98 run_list_test "cr-err" ""
101 run_dump_test "amdfam10"
102 run_dump_test "ssse3"
104 run_dump_test "rep-suffix"
105 run_list_test "inval-rep" "-al"
106 run_dump_test "lock-1"
107 run_dump_test "lock-1-intel"
108 run_list_test "lockbad-1" "-al"
109 run_dump_test "long-1"
110 run_dump_test "long-1-intel"
113 run_dump_test "nops16-1"
114 run_dump_test "nops-1"
115 run_dump_test "nops-1-i386"
116 run_dump_test "nops-1-i386-i686"
117 run_dump_test "nops-1-i686"
118 run_dump_test "nops-1-k8"
119 run_dump_test "nops-1-core2"
120 run_dump_test "nops-2"
121 run_dump_test "nops-2-i386"
122 run_dump_test "nops-2-core2"
123 run_dump_test "nops-3"
124 run_dump_test "nops-3-i386"
125 run_dump_test "nops-3-i686"
126 run_dump_test "nops-4"
127 run_dump_test "nops-4-i386"
128 run_dump_test "nops-4-i686"
129 run_dump_test "nops-4a-i686"
130 run_dump_test "nops-5"
131 run_dump_test "nops-5-i686"
132 run_dump_test "nops-6"
133 run_dump_test "nops-7"
134 run_dump_test "noreg16"
135 run_list_test "noreg16"
136 run_dump_test "noreg16-data32"
137 run_dump_test "noreg32"
138 run_list_test "noreg32"
139 run_dump_test "noreg32-data16"
140 run_list_test "movx16" "-I${srcdir}/$subdir -al"
141 run_list_test "movx32" "-al"
142 run_dump_test "addr16"
143 run_dump_test "addr32"
144 run_dump_test "code16"
145 run_list_test "oversized16" "-al"
146 run_dump_test "sse4_1"
147 run_dump_test "sse4_1-intel"
148 run_dump_test "sse4_2"
149 run_dump_test "sse4_2-intel"
150 run_dump_test "crc32"
151 run_dump_test "crc32-intel"
152 run_list_test "inval-crc32" "-al"
154 run_dump_test "simd-intel"
155 run_dump_test "simd-suffix"
157 run_dump_test "mem-intel"
159 run_dump_test "reg-intel"
161 run_dump_test "i386-intel"
162 run_dump_test "compat"
163 run_dump_test "compat-intel"
164 run_dump_test "arch-1"
165 run_dump_test "arch-2"
166 run_dump_test "arch-3"
167 run_dump_test "arch-4"
168 run_dump_test "arch-5"
169 run_dump_test "arch-6"
170 run_dump_test "arch-7"
171 run_dump_test "arch-9"
172 run_dump_test "arch-10"
173 run_dump_test "arch-10-lzcnt"
174 run_dump_test "arch-10-prefetchw"
175 run_dump_test "arch-10-bdver1"
176 run_dump_test "arch-10-bdver2"
177 run_dump_test "arch-10-bdver3"
178 run_dump_test "arch-10-bdver4"
179 run_dump_test "arch-13-znver1"
180 run_dump_test "arch-13-znver2"
181 run_dump_test "arch-10-btver1"
182 run_dump_test "arch-10-btver2"
183 run_list_test "arch-10-1" "-march=generic32 -I${srcdir}/$subdir -al"
184 run_list_test "arch-10-2" "-march=i686 -I${srcdir}/$subdir -al"
185 run_list_test "arch-10-3" "-march=i686+mmx+sse4.2 -I${srcdir}/$subdir -al"
186 run_list_test "arch-10-4" "-march=i686+mmx+sse4+vmx+smx -I${srcdir}/$subdir -al"
187 run_dump_test "arch-11"
188 run_dump_test "arch-12"
189 run_dump_test "arch-13"
193 run_list_test "no87" "-al"
194 run_list_test "no87-2" "-march=i686+no87 -al"
195 run_list_test "no87-3" "-al"
196 run_list_test "stN" "-al"
198 run_list_test "nommx-1" "-al"
199 run_list_test "nommx-2" "-march=core+nommx -al"
200 run_list_test "nommx-3" "-march=+nommx -al"
201 run_list_test "nosse-1" "-al"
202 run_list_test "nosse-2" "-march=core+nosse -al"
203 run_list_test "nosse-3" "-march=+nosse -al"
204 run_list_test "nosse-4" "-al"
205 run_dump_test "nosse-5"
206 run_list_test "noavx-1" "-al"
207 run_list_test "noavx-2" "-march=+noavx -al"
208 run_list_test "noavx-3" "-al"
209 run_dump_test "noavx-4"
210 run_list_test "noavx512-1" "-al"
211 run_list_test "noavx512-2" "-al"
212 run_dump_test "noextreg"
213 run_dump_test "xmmhi32"
214 run_dump_test "xsave"
215 run_dump_test "xsave-intel"
217 run_dump_test "aes-intel"
218 run_dump_test "clmul"
219 run_dump_test "clmul-intel"
221 run_dump_test "avx-intel"
222 run_dump_test "avx-scalar"
223 run_dump_test "avx-scalar-intel"
224 run_dump_test "avx-scalar-2"
225 run_dump_test "avx-16bit"
226 run_dump_test "avx256int"
227 run_dump_test "avx256int-intel"
229 run_dump_test "avx2-intel"
230 run_dump_test "avx-gather"
231 run_dump_test "avx-gather-intel"
232 run_dump_test "avx-wig"
233 run_dump_test "avx2-wig"
234 run_dump_test "vex-lig-2"
235 run_dump_test "avx512f"
236 run_dump_test "avx512f-intel"
237 run_dump_test "avx512f-opts"
238 run_dump_test "avx512f-opts-intel"
239 run_dump_test "avx512f-nondef"
240 run_list_test "avx512f-plain" "-al"
241 run_dump_test "avx512f-ymm"
242 run_dump_test "avx512f-16bit"
243 run_dump_test "avx512cd"
244 run_dump_test "avx512cd-intel"
245 run_dump_test "avx512er"
246 run_dump_test "avx512er-intel"
247 run_dump_test "avx512pf"
248 run_dump_test "avx512pf-intel"
250 run_dump_test "evex-lig256"
251 run_dump_test "evex-lig512"
252 run_dump_test "evex-lig256-intel"
253 run_dump_test "evex-lig512-intel"
254 run_dump_test "evex-lig-2"
255 run_dump_test "evex-wig1"
256 run_dump_test "evex-wig1-intel"
257 run_dump_test "sse2avx"
258 run_list_test "inval-avx" "-al"
259 run_list_test "inval-avx512f" "-al"
260 run_list_test "inval-avx512vl" "-al"
261 run_dump_test "sse-check"
262 run_dump_test "sse-check-none"
263 run_dump_test "sse-check-warn"
264 run_list_test "sse-check-error" "-msse-check=error -I${srcdir}/$subdir -al"
265 run_dump_test "vgather-check"
266 run_dump_test "vgather-check-none"
267 run_dump_test "vgather-check-warn"
268 run_list_test "vgather-check-error" "-moperand-check=error -I${srcdir}/$subdir"
269 run_dump_test "sse-noavx"
270 run_dump_test "movbe"
271 run_dump_test "movbe-intel"
272 run_list_test "inval-movbe" "-al"
274 run_dump_test "ept-intel"
275 run_list_test "inval-ept" "-al"
276 run_dump_test "invpcid"
277 run_dump_test "invpcid-intel"
278 run_list_test "inval-invpcid" "-al"
279 run_dump_test "arch-avx-1"
280 run_list_test "arch-avx-1-1" "-march=generic32+avx -I${srcdir}/$subdir -al"
281 run_list_test "arch-avx-1-2" "-march=generic32+aes -I${srcdir}/$subdir -al"
282 run_list_test "arch-avx-1-3" "-march=generic32+pclmul -I${srcdir}/$subdir -al"
283 run_list_test "arch-avx-1-4" "-march=generic32+avx+aes -I${srcdir}/$subdir -al"
284 run_list_test "arch-avx-1-5" "-march=generic32+avx+pclmul -I${srcdir}/$subdir -al"
285 run_list_test "arch-avx-1-6" "-march=generic32+aes+pclmul -I${srcdir}/$subdir -al"
286 run_list_test "arch-avx-1-7" "-march=generic32+gfni -I${srcdir}/$subdir -al"
287 run_list_test "arch-avx-1-8" "-march=generic32+avx+gfni -I${srcdir}/$subdir -al"
289 run_dump_test "opts-intel"
290 run_dump_test "sse2avx-opts"
291 run_dump_test "sse2avx-opts-intel"
293 run_dump_test "bmi2-intel"
294 run_dump_test "bmi2-16bit"
296 run_dump_test "fma-intel"
297 run_dump_test "fma-scalar"
298 run_dump_test "fma-scalar-intel"
300 run_dump_test "hle-intel"
301 run_list_test "hlebad" "-al"
303 run_dump_test "rtm-intel"
306 run_dump_test "lwp-16bit"
308 run_dump_test "xop32reg"
310 run_dump_test "bmi-intel"
311 run_dump_test "bmi-16bit"
313 run_dump_test "tbm-intel"
314 run_dump_test "tbm-16bit"
316 run_dump_test "f16c-intel"
318 run_dump_test "fsgs-intel"
319 run_dump_test "rdrnd"
320 run_dump_test "rdrnd-intel"
321 run_dump_test "bundle"
322 run_dump_test "bundle-lock"
323 run_dump_test "bundle-bad"
325 run_dump_test "adx-intel"
326 run_dump_test "rdseed"
327 run_dump_test "rdseed-intel"
328 run_dump_test "prefetch"
329 run_dump_test "prefetch-intel"
332 run_list_test "mpx-inval-1" "-al"
333 run_list_test "mpx-inval-2" "-al"
334 run_dump_test "mpx-add-bnd-prefix"
335 run_dump_test "mpx-16bit"
336 run_list_test "bnd" "-al"
338 run_dump_test "clflushopt"
339 run_dump_test "clflushopt-intel"
340 run_dump_test "xsavec"
341 run_dump_test "xsavec-intel"
342 run_dump_test "xsaves"
343 run_dump_test "xsaves-intel"
344 run_dump_test "prefetchwt1"
345 run_dump_test "prefetchwt1-intel"
347 run_dump_test "avx512f_vl-intel"
348 run_dump_test "avx512f_vl-opts-intel"
349 run_dump_test "avx512f_vl-opts"
350 run_dump_test "avx512f_vl-wig1-intel"
351 run_dump_test "avx512f_vl-wig1"
352 run_dump_test "avx512f_vl"
353 run_dump_test "avx512cd_vl-intel"
354 run_dump_test "avx512cd_vl"
355 run_dump_test "avx512bw-intel"
356 run_dump_test "avx512bw-opts-intel"
357 run_dump_test "avx512bw-opts"
358 run_dump_test "avx512bw-wig1-intel"
359 run_dump_test "avx512bw-wig1"
360 run_dump_test "avx512bw"
361 run_dump_test "avx512bw_vl-intel"
362 run_dump_test "avx512bw_vl-opts-intel"
363 run_dump_test "avx512bw_vl-opts"
364 run_dump_test "avx512bw_vl-wig1-intel"
365 run_dump_test "avx512bw_vl-wig1"
366 run_dump_test "avx512bw_vl"
367 run_dump_test "avx512dq-intel"
368 run_dump_test "avx512dq"
369 run_list_test "avx512dq-inval"
370 run_dump_test "avx512dq_vl-intel"
371 run_dump_test "avx512dq_vl"
372 run_dump_test "omit-lock-yes"
373 run_dump_test "omit-lock-no"
374 run_dump_test "fence-as-lock-add-yes"
375 run_dump_test "fence-as-lock-add-no"
376 run_dump_test "avx512dq-rcigrd-intel"
377 run_dump_test "avx512dq-rcigrd"
378 run_dump_test "avx512dq-rcigrne-intel"
379 run_dump_test "avx512dq-rcigrne"
380 run_dump_test "avx512dq-rcigru-intel"
381 run_dump_test "avx512dq-rcigru"
382 run_dump_test "avx512dq-rcigrz-intel"
383 run_dump_test "avx512dq-rcigrz"
384 run_dump_test "avx512er-rcigrd-intel"
385 run_dump_test "avx512er-rcigrd"
386 run_dump_test "avx512er-rcigrne-intel"
387 run_dump_test "avx512er-rcigrne"
388 run_dump_test "avx512er-rcigru-intel"
389 run_dump_test "avx512er-rcigru"
390 run_dump_test "avx512er-rcigrz-intel"
391 run_dump_test "avx512er-rcigrz"
392 run_dump_test "avx512f-rcigrd-intel"
393 run_dump_test "avx512f-rcigrd"
394 run_dump_test "avx512f-rcigrne-intel"
395 run_dump_test "avx512f-rcigrne"
396 run_dump_test "avx512f-rcigru-intel"
397 run_dump_test "avx512f-rcigru"
398 run_dump_test "avx512f-rcigrz-intel"
399 run_dump_test "avx512f-rcigrz"
401 run_dump_test "clwb-intel"
402 run_dump_test "avx512ifma"
403 run_dump_test "avx512ifma-intel"
404 run_dump_test "avx512ifma_vl"
405 run_dump_test "avx512ifma_vl-intel"
406 run_dump_test "avx512vbmi"
407 run_dump_test "avx512vbmi-intel"
408 run_dump_test "avx512vbmi_vl"
409 run_dump_test "avx512vbmi_vl-intel"
410 run_dump_test "avx512_4fmaps"
411 run_dump_test "avx512_4fmaps-intel"
412 run_list_test "avx512_4fmaps-warn"
413 run_dump_test "avx512_4vnniw"
414 run_dump_test "avx512_4vnniw-intel"
415 run_dump_test "avx512_vpopcntdq"
416 run_dump_test "avx512_vpopcntdq-intel"
417 run_dump_test "avx512vbmi2"
418 run_dump_test "avx512vbmi2-intel"
419 run_dump_test "avx512vbmi2_vl"
420 run_dump_test "avx512vbmi2_vl-intel"
421 run_dump_test "avx512f_gfni"
422 run_dump_test "avx512f_gfni-intel"
423 run_dump_test "avx512vl_gfni"
424 run_dump_test "avx512vl_gfni-intel"
425 run_dump_test "avx512f_vaes"
426 run_dump_test "avx512f_vaes-intel"
427 run_dump_test "avx512f_vaes-wig1"
428 run_dump_test "avx512f_vaes-wig1-intel"
429 run_dump_test "avx512vl_vaes"
430 run_dump_test "avx512vl_vaes-intel"
431 run_dump_test "avx512vl_vaes-wig1"
432 run_dump_test "avx512vl_vaes-wig1-intel"
433 run_dump_test "avx512f_vpclmulqdq"
434 run_dump_test "avx512f_vpclmulqdq-intel"
435 run_dump_test "avx512f_vpclmulqdq-wig1"
436 run_dump_test "avx512f_vpclmulqdq-wig1-intel"
437 run_dump_test "avx512vl_vpclmulqdq"
438 run_dump_test "avx512vl_vpclmulqdq-intel"
439 run_dump_test "avx512vl_vpclmulqdq-wig1"
440 run_dump_test "avx512vl_vpclmulqdq-wig1-intel"
441 run_dump_test "avx512vnni"
442 run_dump_test "avx512vnni-intel"
443 run_dump_test "avx512vnni_vl"
444 run_dump_test "avx512vnni_vl-intel"
445 run_dump_test "avx512bitalg"
446 run_dump_test "avx512bitalg-intel"
447 run_dump_test "avx512bitalg_vl"
448 run_dump_test "avx512bitalg_vl-intel"
449 run_dump_test "avx512_bf16"
450 run_dump_test "avx512_bf16_vl"
451 run_list_test "avx512_bf16_vl-inval"
453 run_dump_test "clzero"
454 run_dump_test "disassem"
455 run_dump_test "mwaitx-bdver4"
456 run_list_test "mwaitx-reg"
457 run_dump_test "ospke"
458 run_dump_test "rdpid"
459 run_dump_test "rdpid-intel"
460 run_dump_test "ptwrite"
461 run_dump_test "ptwrite-intel"
463 run_dump_test "gfni-intel"
465 run_dump_test "vaes-intel"
466 run_dump_test "vpclmulqdq"
467 run_dump_test "vpclmulqdq-intel"
468 run_dump_test "wbnoinvd"
469 run_dump_test "wbnoinvd-intel"
470 run_dump_test "pconfig"
471 run_dump_test "pconfig-intel"
472 run_dump_test "waitpkg"
473 run_dump_test "waitpkg-intel"
474 run_dump_test "cldemote"
475 run_dump_test "cldemote-intel"
476 run_dump_test "movdir"
477 run_dump_test "movdir-intel"
478 run_list_test "movdir64b-reg"
479 run_dump_test "enqcmd"
480 run_dump_test "enqcmd-intel"
481 run_list_test "enqcmd-inval"
482 run_dump_test "serialize"
483 run_dump_test "tsxldtrk"
484 run_dump_test "vp2intersect"
485 run_dump_test "vp2intersect-intel"
486 run_list_test "vp2intersect-inval-bcast"
487 run_list_test "avx512vl-1" "-al"
488 run_list_test "avx512vl-2" "-al"
489 run_list_test "avx512vl-ambig"
490 run_list_test "avx512vl-plain" "-al"
491 run_dump_test "fpu-bad"
493 run_dump_test "cet-intel"
494 run_list_test "cet-ibt-inval"
495 run_list_test "cet-shstk-inval"
496 run_dump_test "pseudos"
497 run_list_test "pseudos-bad"
498 run_dump_test "notrack"
499 run_dump_test "notrack-intel"
500 run_list_test "notrackbad" "-al"
501 run_dump_test "align-1a"
502 run_dump_test "align-1b"
503 run_list_test "inval-pseudo" "-al"
504 run_dump_test "nop-1"
505 run_dump_test "nop-1-suffix"
506 run_dump_test "nop-2"
507 run_dump_test "optimize-1"
508 run_dump_test "optimize-1a"
509 run_dump_test "optimize-2"
510 run_dump_test "optimize-2b"
511 run_dump_test "optimize-3"
512 run_dump_test "optimize-4"
513 run_dump_test "optimize-5"
514 run_list_test "optimize-6a" "-I${srcdir}/$subdir -march=+noavx -al"
515 run_dump_test "optimize-6b"
516 run_list_test "optimize-7" "-I${srcdir}/$subdir -march=+noavx2 -al"
517 run_dump_test "lea-optimize"
518 run_dump_test "align-branch-1a"
519 run_dump_test "align-branch-1b"
520 run_dump_test "align-branch-1c"
521 run_dump_test "align-branch-1d"
522 run_dump_test "align-branch-1e"
523 run_dump_test "align-branch-1f"
524 run_dump_test "align-branch-1g"
525 run_dump_test "align-branch-1h"
526 run_dump_test "align-branch-1i"
527 run_dump_test "align-branch-2a"
528 run_dump_test "align-branch-2b"
529 run_dump_test "align-branch-2c"
530 run_dump_test "align-branch-4a"
531 run_dump_test "align-branch-4b"
532 run_dump_test "align-branch-5"
533 run_dump_test "align-branch-6"
534 run_dump_test "align-branch-7"
535 run_dump_test "align-branch-8"
536 run_dump_test "align-branch-9"
537 run_dump_test "lfence-load"
538 run_dump_test "lfence-indbr-a"
539 run_dump_test "lfence-indbr-b"
540 run_dump_test "lfence-indbr-c"
541 run_dump_test "lfence-ret-a"
542 run_dump_test "lfence-ret-b"
543 run_dump_test "lfence-ret-c"
544 run_dump_test "lfence-ret-d"
545 run_dump_test "lfence-byte"
547 # These tests require support for 8 and 16 bit relocs,
548 # so we only run them for ELF and COFF targets.
549 if {[is_elf_format] || [istarget "*-*-coff*"]} then {
550 run_dump_test "reloc"
551 run_dump_test "jump16"
552 run_list_test "white" "-al --listing-lhs-width=3"
554 # These tests should in theory work for PE targets as well,
555 # but the relocs we currently produce are slightly different
556 # from those produced for ELF/COFF based toolchains.
557 # So for now we ignore PE targets.
558 run_dump_test "absrel"
559 if {[istarget "*-*-coff*"]} then {
560 run_dump_test "pcrel"
565 if [is_elf_format] then {
566 # PIC is only supported on ELF targets.
567 run_dump_test "intelpic"
569 run_dump_test "pcrel-elf"
570 run_dump_test "relax"
571 run_dump_test "gotpc"
573 run_dump_test "tlspic"
574 run_dump_test "tlsnopic"
576 run_dump_test "reloc32"
577 run_list_test "reloc32" "--defsym _bad_=1"
578 run_dump_test "intel-got32"
579 run_dump_test "intel-movs32"
580 run_dump_test "intel-movs16"
581 run_dump_test "intel-cmps32"
582 run_dump_test "intel-cmps16"
583 run_list_test "inval-equ-1" "-al"
584 run_list_test "inval-equ-2" "-al"
585 run_dump_test "ifunc"
586 run_list_test "ifunc-2"
587 run_dump_test "ifunc-3"
588 run_list_test "l1om-inval" "-march=l1om --32"
589 run_list_test "k1om-inval" "-march=k1om --32"
590 run_dump_test "localpic"
591 run_dump_test "debug1"
593 run_dump_test "dw2-compress-2"
594 run_dump_test "dw2-compressed-2"
596 run_dump_test "bad-size"
598 run_dump_test "size-1"
599 run_dump_test "size-2"
600 run_dump_test "size-3"
601 run_dump_test "size-4"
605 run_dump_test "relax-3"
606 run_dump_test "relax-4"
607 run_dump_test "relax-5"
610 run_dump_test "got-no-relax"
612 run_dump_test "addend"
613 run_dump_test "nop-3"
614 run_dump_test "nop-4"
615 run_dump_test "nop-5"
616 run_dump_test "nop-6"
617 run_dump_test "unique"
619 run_dump_test "evex-no-scale-32"
620 run_dump_test "property-1"
621 run_dump_test "property-2"
622 run_dump_test "property-3"
624 if {[istarget "*-*-linux*"]} then {
625 run_dump_test "align-branch-3"
628 if { [gas_64_check] } then {
629 run_dump_test "att-regs"
630 run_dump_test "intel-regs"
631 run_dump_test "mixed-mode-reloc32"
632 run_dump_test "code64"
633 } elseif { ![gas_bfd64_check] } {
634 run_list_test "code64-inval" "-I${srcdir}/$subdir -al"
637 if {![istarget "*-*-nacl*"]} then {
638 run_dump_test "iamcu-1"
639 run_dump_test "iamcu-2"
640 run_dump_test "iamcu-3"
641 run_dump_test "iamcu-4"
642 run_dump_test "iamcu-5"
643 run_list_test "iamcu-inval-1" "-march=iamcu -al"
647 # This is a PE specific test.
648 if { [istarget "*-*-cygwin*"] || [istarget "*-*-pe"]
649 || [istarget "*-*-mingw*"]
651 run_dump_test "secrel"
654 # Miscellaneous tests.
655 run_dump_test "pr12589-1"
657 set ASFLAGS "$old_ASFLAGS"
661 if [expr [istarget "i*86-*-*"] || [istarget "x86_64-*-*"]] then {
662 if {![istarget "i*86-*-elfiamcu"] && [gas_64_check]} then {
663 run_dump_test "intel-expr"
664 run_dump_test "string-ok"
666 run_list_test "string-bad" ""
667 run_list_test "reg-bad" ""
668 run_list_test "space1" "-al"
669 run_list_test "xmmword" ""
671 run_dump_test pr19498
672 run_list_test "nop-bad-1" ""
673 run_list_test "unspec" ""
674 if [is_elf_format] then {
675 run_list_test_stdin "list-1" "-al"
676 run_list_test_stdin "list-2" "-al"
677 run_list_test_stdin "list-3" "-al"
678 run_dump_test "dw2-compress-1"
679 run_dump_test "dw2-compress-3a"
680 run_dump_test "dw2-compress-3b"
681 run_dump_test "dw2-compressed-1"
682 run_dump_test "dw2-compressed-3a"
683 run_dump_test "dw2-compressed-3b"
687 if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check]] then {
690 set old_ASFLAGS "$ASFLAGS"
691 set ASFLAGS "$ASFLAGS --64 --defsym x86_64=1 --strip-local-absolute"
693 run_dump_test "x86_64"
694 run_dump_test "x86_64-intel"
695 run_dump_test "x86-64-addr32"
696 run_dump_test "x86-64-addr32-intel"
697 run_dump_test "x86-64-opcode"
698 run_dump_test "x86-64-intel64"
699 if { ! [istarget "*-*-*cygwin*"] && ![istarget "*-*-mingw*"] } then {
700 run_dump_test "x86-64-pcrel"
701 run_dump_test "x86-64-disassem"
703 run_dump_test "x86-64-w64-pcrel"
705 run_dump_test "x86-64-rip"
706 run_dump_test "x86-64-rip-intel"
707 run_dump_test "x86-64-stack"
708 run_dump_test "x86-64-stack-intel"
709 run_dump_test "x86-64-stack-suffix"
710 run_list_test "x86-64-inval" "-al"
711 run_list_test "x86-64-segment" "-al"
712 run_dump_test "x86-64-segovr"
713 run_list_test "x86-64-inval-seg" "-al"
714 run_dump_test "x86-64-branch"
715 run_dump_test "movz64"
716 run_dump_test "x86-64-relax-1"
717 run_dump_test "svme64"
718 run_dump_test "x86-64-amdfam10"
719 run_dump_test "x86-64-vmx"
720 run_dump_test "x86-64-vmfunc"
721 run_dump_test "immed64"
722 run_dump_test "x86-64-sse3"
723 run_dump_test "x86-64-sse3-intel"
724 run_dump_test "x86-64-crx"
725 run_dump_test "x86-64-crx-suffix"
726 run_dump_test "x86-64-drx"
727 run_dump_test "x86-64-drx-suffix"
728 run_dump_test "x86-64-cdr"
729 run_dump_test "x86-64-ssse3"
730 run_dump_test "x86-64-rep"
731 run_dump_test "x86-64-rep-suffix"
732 run_list_test "x86-64-inval-rep" "-al"
733 run_dump_test "x86-64-lock-1"
734 run_dump_test "x86-64-lock-1-intel"
735 run_list_test "x86-64-lockbad-1" "-al"
736 run_dump_test "x86-64-long-1"
737 run_dump_test "x86-64-long-1-intel"
738 run_dump_test "x86-64-cbw"
739 run_dump_test "x86-64-cbw-intel"
740 run_dump_test "x86-64-io"
741 run_dump_test "x86-64-io-intel"
742 run_dump_test "x86-64-io-suffix"
743 run_dump_test "x86-64-gidt"
744 run_dump_test "x86-64-nops"
745 run_dump_test "x86-64-nops-1"
746 run_dump_test "x86-64-nops-1-g64"
747 run_dump_test "x86-64-nops-1-k8"
748 run_dump_test "x86-64-nops-1-core2"
749 run_dump_test "x86-64-nops-1-pentium"
750 run_dump_test "x86-64-nops-2"
751 run_dump_test "x86-64-nops-3"
752 run_dump_test "x86-64-nops-4"
753 run_dump_test "x86-64-nops-4-core2"
754 run_dump_test "x86-64-nops-4-k8"
755 run_dump_test "x86-64-nops-5"
756 run_dump_test "x86-64-nops-5-k8"
757 run_dump_test "x86-64-nops-7"
758 run_dump_test "x86-64-sysenter"
759 run_dump_test "x86-64-sysenter-intel"
760 run_dump_test "x86-64-sysenter-mixed"
761 run_dump_test "x86-64-sysenter-amd"
762 run_list_test "x86-64-sysenter-amd" "-mamd64"
763 run_dump_test "noreg64"
764 run_list_test "noreg64"
765 run_dump_test "noreg64-data16"
766 run_dump_test "noreg64-rex64"
767 run_dump_test "noreg-intel64"
768 run_list_test "noreg-intel64" "-I${srcdir}/$subdir -mintel64"
769 run_list_test "movx64" "-al"
770 run_list_test "cvtsi2sX"
771 run_dump_test "x86-64-sse4_1"
772 run_dump_test "x86-64-sse4_1-intel"
773 run_dump_test "x86-64-sse4_2"
774 run_dump_test "x86-64-sse4_2-intel"
775 run_dump_test "x86-64-crc32"
776 run_dump_test "x86-64-crc32-intel"
777 run_list_test "x86-64-inval-crc32" "-al"
778 run_dump_test "x86-64-simd"
779 run_dump_test "x86-64-simd-intel"
780 run_dump_test "x86-64-simd-suffix"
781 run_dump_test "x86-64-mem"
782 run_dump_test "x86-64-mem-intel"
783 run_dump_test "x86-64-reg"
784 run_list_test "x86-64-reg-bad" "-al"
785 run_dump_test "x86-64-reg-intel"
786 run_dump_test "x86-64-sib"
787 run_dump_test "x86-64-sib-intel"
788 run_dump_test "x86-64-disp"
789 run_dump_test "x86-64-disp-intel"
790 run_dump_test "intel-movs64"
791 run_dump_test "intel-cmps64"
792 run_dump_test "x86-64-disp32"
794 run_list_test "x86-64-specific-reg"
795 run_list_test "suffix-bad"
796 run_list_test "x86-64-suffix-bad"
797 run_list_test "unspec64" ""
798 run_list_test "prefix64" "-al"
799 run_list_test "oversized64" "-al"
800 run_dump_test "x86-64-fxsave"
801 run_dump_test "x86-64-fxsave-intel"
802 run_dump_test "x86-64-arch-1"
803 run_dump_test "x86-64-arch-2"
804 run_dump_test "x86-64-arch-3"
805 run_dump_test "x86-64-arch-2-lzcnt"
806 run_dump_test "x86-64-arch-2-prefetchw"
807 run_dump_test "x86-64-arch-2-bdver1"
808 run_dump_test "x86-64-arch-2-bdver2"
809 run_dump_test "x86-64-arch-2-bdver3"
810 run_dump_test "x86-64-arch-2-bdver4"
811 run_dump_test "x86-64-arch-3-znver1"
812 run_dump_test "x86-64-arch-3-znver2"
813 run_dump_test "x86-64-arch-2-btver1"
814 run_dump_test "x86-64-arch-2-btver2"
815 run_list_test "x86-64-arch-2-1" "-march=generic64 -I${srcdir}/$subdir -al"
816 run_list_test "x86-64-arch-2-2" "-march=generic64+cx16 -I${srcdir}/$subdir -al"
817 run_dump_test "xmmhi64"
818 run_dump_test "x86-64-xsave"
819 run_dump_test "x86-64-xsave-intel"
820 run_dump_test "x86-64-aes"
821 run_dump_test "x86-64-aes-intel"
822 run_dump_test "x86-64-clmul"
823 run_dump_test "x86-64-clmul-intel"
824 run_dump_test "x86-64-avx"
825 run_dump_test "x86-64-avx-intel"
826 run_dump_test "x86-64-avx-scalar"
827 run_dump_test "x86-64-avx-scalar-intel"
828 run_dump_test "x86-64-avx-scalar-2"
829 run_dump_test "x86-64-avx256int"
830 run_dump_test "x86-64-avx_gfni"
831 run_dump_test "x86-64-avx_gfni-intel"
832 run_dump_test "x86-64-avx256int-intel"
833 run_dump_test "x86-64-avx2"
834 run_dump_test "x86-64-avx2-intel"
835 run_dump_test "x86-64-avx-gather"
836 run_dump_test "x86-64-avx-gather-intel"
837 run_dump_test "x86-64-avx-wig"
838 run_dump_test "x86-64-avx2-wig"
839 run_dump_test "x86-64-vex-lig-2"
840 run_dump_test "x86-64-avx512f"
841 run_dump_test "x86-64-avx512f-intel"
842 run_dump_test "x86-64-avx512f-opts"
843 run_dump_test "x86-64-avx512f-opts-intel"
844 run_dump_test "x86-64-avx512f-nondef"
845 run_dump_test "x86-64-avx512cd"
846 run_dump_test "x86-64-avx512cd-intel"
847 run_dump_test "x86-64-avx512er"
848 run_dump_test "x86-64-avx512er-intel"
849 run_dump_test "x86-64-avx512pf"
850 run_dump_test "x86-64-avx512pf-intel"
851 run_dump_test "x86-64-evex-lig256"
852 run_dump_test "x86-64-evex-lig512"
853 run_dump_test "x86-64-evex-lig256-intel"
854 run_dump_test "x86-64-evex-lig512-intel"
855 run_dump_test "x86-64-evex-lig-2"
856 run_dump_test "x86-64-evex-wig1"
857 run_dump_test "x86-64-evex-wig1-intel"
858 run_dump_test "x86-64-evex-wig2"
859 run_dump_test "x86-64-sse2avx"
860 run_list_test "x86-64-inval-avx" "-al"
861 run_list_test "x86-64-inval-avx512f" "-al"
862 run_list_test "x86-64-inval-avx512vl" "-al"
863 run_dump_test "x86-64-sse-check"
864 run_dump_test "x86-64-sse-check-none"
865 run_dump_test "x86-64-sse-check-warn"
866 run_list_test "x86-64-sse-check-error" "-msse-check=error -I${srcdir}/$subdir -al"
867 run_dump_test "x86-64-vgather-check"
868 run_dump_test "x86-64-vgather-check-none"
869 run_dump_test "x86-64-vgather-check-warn"
870 run_list_test "x86-64-vgather-check-error" "-moperand-check=error -I${srcdir}/$subdir"
871 run_dump_test "x86-64-sse-noavx"
872 run_dump_test "x86-64-movbe"
873 run_dump_test "x86-64-movbe-intel"
874 run_list_test "x86-64-inval-movbe" "-al"
875 run_dump_test "x86-64-ept"
876 run_dump_test "x86-64-ept-intel"
877 run_list_test "x86-64-inval-ept" "-al"
878 run_dump_test "x86-64-invpcid"
879 run_dump_test "x86-64-invpcid-intel"
880 run_list_test "x86-64-inval-invpcid" "-al"
881 run_dump_test "x86-64-opts"
882 run_dump_test "x86-64-opts-intel"
883 run_dump_test "x86-64-sse2avx-opts"
884 run_dump_test "x86-64-sse2avx-opts-intel"
885 run_dump_test "x86-64-avx-swap"
886 run_dump_test "x86-64-avx-swap-intel"
887 run_dump_test "x86-64-avx-swap-2"
888 run_dump_test "x86-64-bmi2"
889 run_dump_test "x86-64-bmi2-intel"
890 run_dump_test "x86-64-fma"
891 run_dump_test "x86-64-fma-intel"
892 run_dump_test "x86-64-fma-scalar"
893 run_dump_test "x86-64-fma-scalar-intel"
894 run_dump_test "x86-64-hle"
895 run_dump_test "x86-64-hle-intel"
896 run_list_test "x86-64-hlebad" "-al"
897 run_dump_test "x86-64-rtm"
898 run_dump_test "x86-64-rtm-intel"
899 run_dump_test "x86-64-fma4"
900 run_dump_test "x86-64-lwp"
901 run_dump_test "x86-64-xop"
902 run_dump_test "x86-64-bmi"
903 run_dump_test "x86-64-bmi-intel"
904 run_dump_test "x86-64-tbm"
905 run_dump_test "x86-64-tbm-intel"
906 run_dump_test "x86-64-f16c"
907 run_dump_test "x86-64-f16c-intel"
908 run_dump_test "x86-64-fsgs"
909 run_dump_test "x86-64-fsgs-intel"
910 run_dump_test "x86-64-rdrnd"
911 run_dump_test "x86-64-rdrnd-intel"
912 run_dump_test "x86-64-bundle"
913 run_dump_test "x86-64-adx"
914 run_dump_test "x86-64-adx-intel"
915 run_dump_test "x86-64-rdseed"
916 run_dump_test "x86-64-rdseed-intel"
917 run_dump_test "x86-64-prefetch"
918 run_dump_test "x86-64-prefetch-intel"
919 run_dump_test "x86-64-smap"
920 run_dump_test "x86-64-mpx"
921 run_list_test "x86-64-mpx-inval-1" "-al"
922 run_list_test "x86-64-mpx-inval-2" "-al"
923 run_dump_test "x86-64-mpx-addr32"
924 run_dump_test "x86-64-mpx-add-bnd-prefix"
925 run_dump_test "x86-64-sha"
926 run_dump_test "x86-64-clflushopt"
927 run_dump_test "x86-64-clflushopt-intel"
928 run_dump_test "x86-64-xsavec"
929 run_dump_test "x86-64-xsavec-intel"
930 run_dump_test "x86-64-xsaves"
931 run_dump_test "x86-64-xsaves-intel"
932 run_dump_test "x86-64-prefetchwt1"
933 run_dump_test "x86-64-prefetchwt1-intel"
934 run_dump_test "x86-64-se1"
935 run_dump_test "x86-64-equ"
936 run_list_test "x86-64-equ-bad"
937 run_dump_test "x86-64-avx512f_vl-intel"
938 run_dump_test "x86-64-avx512f_vl-opts-intel"
939 run_dump_test "x86-64-avx512f_vl-opts"
940 run_dump_test "x86-64-avx512f_vl-wig1-intel"
941 run_dump_test "x86-64-avx512f_vl-wig1"
942 run_dump_test "x86-64-avx512f_vl"
943 run_dump_test "x86-64-avx512cd_vl-intel"
944 run_dump_test "x86-64-avx512cd_vl"
945 run_dump_test "x86-64-avx512bw-intel"
946 run_dump_test "x86-64-avx512bw-opts-intel"
947 run_dump_test "x86-64-avx512bw-opts"
948 run_dump_test "x86-64-avx512bw-wig1-intel"
949 run_dump_test "x86-64-avx512bw-wig1"
950 run_dump_test "x86-64-avx512bw"
951 run_dump_test "x86-64-avx512bw_vl-intel"
952 run_dump_test "x86-64-avx512bw_vl-opts-intel"
953 run_dump_test "x86-64-avx512bw_vl-opts"
954 run_dump_test "x86-64-avx512bw_vl-wig1-intel"
955 run_dump_test "x86-64-avx512bw_vl-wig1"
956 run_dump_test "x86-64-avx512bw_vl"
957 run_dump_test "x86-64-avx512dq-intel"
958 run_dump_test "x86-64-avx512dq"
959 run_dump_test "x86-64-avx512dq_vl-intel"
960 run_dump_test "x86-64-avx512dq_vl"
961 run_dump_test "x86-64-suffix"
962 run_dump_test "x86-64-suffix-intel"
963 run_dump_test "x86-64-default-suffix"
964 run_dump_test "x86-64-default-suffix-avx"
965 run_dump_test "x86-64-avx512dq-rcigrd-intel"
966 run_dump_test "x86-64-avx512dq-rcigrd"
967 run_dump_test "x86-64-avx512dq-rcigrne-intel"
968 run_dump_test "x86-64-avx512dq-rcigrne"
969 run_dump_test "x86-64-avx512dq-rcigru-intel"
970 run_dump_test "x86-64-avx512dq-rcigru"
971 run_dump_test "x86-64-avx512dq-rcigrz-intel"
972 run_dump_test "x86-64-avx512dq-rcigrz"
973 run_dump_test "x86-64-avx512er-rcigrd-intel"
974 run_dump_test "x86-64-avx512er-rcigrd"
975 run_dump_test "x86-64-avx512er-rcigrne-intel"
976 run_dump_test "x86-64-avx512er-rcigrne"
977 run_dump_test "x86-64-avx512er-rcigru-intel"
978 run_dump_test "x86-64-avx512er-rcigru"
979 run_dump_test "x86-64-avx512er-rcigrz-intel"
980 run_dump_test "x86-64-avx512er-rcigrz"
981 run_dump_test "x86-64-avx512f-rcigrd-intel"
982 run_dump_test "x86-64-avx512f-rcigrd"
983 run_dump_test "x86-64-avx512f-rcigrne-intel"
984 run_dump_test "x86-64-avx512f-rcigrne"
985 run_dump_test "x86-64-avx512f-rcigru-intel"
986 run_dump_test "x86-64-avx512f-rcigru"
987 run_dump_test "x86-64-avx512f-rcigrz-intel"
988 run_dump_test "x86-64-avx512f-rcigrz"
989 run_dump_test "x86-64-clwb"
990 run_dump_test "x86-64-clwb-intel"
991 run_dump_test "x86-64-avx512ifma"
992 run_dump_test "x86-64-avx512ifma-intel"
993 run_dump_test "x86-64-avx512ifma_vl"
994 run_dump_test "x86-64-avx512ifma_vl-intel"
995 run_dump_test "x86-64-avx512vbmi"
996 run_dump_test "x86-64-avx512vbmi-intel"
997 run_dump_test "x86-64-avx512vbmi_vl"
998 run_dump_test "x86-64-avx512vbmi_vl-intel"
999 run_dump_test "x86-64-avx512_4fmaps"
1000 run_dump_test "x86-64-avx512_4fmaps-intel"
1001 run_list_test "x86-64-avx512_4fmaps-warn"
1002 run_dump_test "x86-64-avx512_4vnniw"
1003 run_dump_test "x86-64-avx512_4vnniw-intel"
1004 run_dump_test "x86-64-avx512_vpopcntdq"
1005 run_dump_test "x86-64-avx512_vpopcntdq-intel"
1006 run_dump_test "x86-64-avx512vbmi2"
1007 run_dump_test "x86-64-avx512vbmi2-intel"
1008 run_dump_test "x86-64-avx512vbmi2_vl"
1009 run_dump_test "x86-64-avx512vbmi2_vl-intel"
1010 run_dump_test "x86-64-avx512f_gfni"
1011 run_dump_test "x86-64-avx512f_gfni-intel"
1012 run_dump_test "x86-64-avx512vl_gfni"
1013 run_dump_test "x86-64-avx512vl_gfni-intel"
1014 run_dump_test "x86-64-avx512f_vaes"
1015 run_dump_test "x86-64-avx512f_vaes-intel"
1016 run_dump_test "x86-64-avx512f_vaes-wig1"
1017 run_dump_test "x86-64-avx512f_vaes-wig1-intel"
1018 run_dump_test "x86-64-avx512vl_vaes"
1019 run_dump_test "x86-64-avx512vl_vaes-intel"
1020 run_dump_test "x86-64-avx512vl_vaes-wig1"
1021 run_dump_test "x86-64-avx512vl_vaes-wig1-intel"
1022 run_dump_test "x86-64-avx512f_vpclmulqdq"
1023 run_dump_test "x86-64-avx512f_vpclmulqdq-intel"
1024 run_dump_test "x86-64-avx512f_vpclmulqdq-wig1"
1025 run_dump_test "x86-64-avx512f_vpclmulqdq-wig1-intel"
1026 run_dump_test "x86-64-avx512vl_vpclmulqdq"
1027 run_dump_test "x86-64-avx512vl_vpclmulqdq-intel"
1028 run_dump_test "x86-64-avx512vl_vpclmulqdq-wig1"
1029 run_dump_test "x86-64-avx512vl_vpclmulqdq-wig1-intel"
1030 run_dump_test "x86-64-avx512vnni"
1031 run_dump_test "x86-64-avx512vnni-intel"
1032 run_dump_test "x86-64-avx512vnni_vl"
1033 run_dump_test "x86-64-avx512vnni_vl-intel"
1034 run_dump_test "x86-64-avx512bitalg"
1035 run_dump_test "x86-64-avx512bitalg-intel"
1036 run_dump_test "x86-64-avx512bitalg_vl"
1037 run_dump_test "x86-64-avx512bitalg_vl-intel"
1038 run_dump_test "x86-64-avx512_bf16"
1039 run_dump_test "x86-64-avx512_bf16_vl"
1040 run_list_test "x86-64-avx512_bf16_vl-inval"
1041 run_dump_test "x86-64-clzero"
1042 run_dump_test "x86-64-mwaitx-bdver4"
1043 run_list_test "x86-64-mwaitx-reg"
1044 run_dump_test "x86-64-ospke"
1045 run_dump_test "x86-64-rdpid"
1046 run_dump_test "x86-64-rdpid-intel"
1047 run_dump_test "x86-64-ptwrite"
1048 run_dump_test "x86-64-ptwrite-intel"
1049 run_dump_test "x86-64-gfni"
1050 run_dump_test "x86-64-gfni-intel"
1051 run_dump_test "x86-64-vaes"
1052 run_dump_test "x86-64-vaes-intel"
1053 run_dump_test "x86-64-vpclmulqdq"
1054 run_dump_test "x86-64-vpclmulqdq-intel"
1055 run_dump_test "x86-64-wbnoinvd"
1056 run_dump_test "x86-64-wbnoinvd-intel"
1057 run_dump_test "x86-64-pconfig"
1058 run_dump_test "x86-64-pconfig-intel"
1059 run_dump_test "x86-64-waitpkg"
1060 run_dump_test "x86-64-waitpkg-intel"
1061 run_dump_test "x86-64-cldemote"
1062 run_dump_test "x86-64-cldemote-intel"
1063 run_dump_test "x86-64-movdir"
1064 run_dump_test "x86-64-movdir-intel"
1065 run_list_test "x86-64-movdir64b-reg"
1066 run_dump_test "x86-64-enqcmd"
1067 run_dump_test "x86-64-enqcmd-intel"
1068 run_list_test "x86-64-enqcmd-inval"
1069 run_dump_test "x86-64-serialize"
1070 run_dump_test "x86-64-tsxldtrk"
1071 run_dump_test "x86-64-vp2intersect"
1072 run_dump_test "x86-64-vp2intersect-intel"
1073 run_list_test "x86-64-vp2intersect-inval-bcast"
1074 run_dump_test "x86-64-fence-as-lock-add-yes"
1075 run_dump_test "x86-64-fence-as-lock-add-no"
1076 run_dump_test "x86-64-pr20141"
1077 run_list_test "x86-64-avx512vl-1" "-al"
1078 run_list_test "x86-64-avx512vl-2" "-al"
1079 run_dump_test "x86-64-opcode-bad"
1080 run_dump_test "x86-64-cet"
1081 run_dump_test "x86-64-cet-intel"
1082 run_list_test "x86-64-cet-ibt-inval"
1083 run_list_test "x86-64-cet-shstk-inval"
1084 run_dump_test "x86-64-pseudos"
1085 run_list_test "x86-64-pseudos-bad"
1086 run_dump_test "x86-64-notrack"
1087 run_dump_test "x86-64-notrack-intel"
1088 run_list_test "x86-64-notrackbad" "-al"
1089 run_dump_test "x86-64-movd"
1090 run_dump_test "x86-64-movd-intel"
1091 run_dump_test "x86-64-nop-1"
1092 run_dump_test "x86-64-nop-2"
1093 run_dump_test "x86-64-movsxd"
1094 run_dump_test "x86-64-movsxd-intel"
1095 run_list_test "x86-64-movsxd-inval" "-al"
1096 run_dump_test "x86-64-movsxd-intel64"
1097 run_dump_test "x86-64-movsxd-intel64-intel"
1098 run_list_test "x86-64-movsxd-intel64-inval" "-mintel64 -al"
1099 run_dump_test "x86-64-optimize-1"
1100 run_dump_test "x86-64-optimize-2"
1101 run_dump_test "x86-64-optimize-2a"
1102 run_dump_test "x86-64-optimize-2b"
1103 run_dump_test "x86-64-optimize-3"
1104 run_dump_test "x86-64-optimize-3b"
1105 run_dump_test "x86-64-optimize-4"
1106 run_dump_test "x86-64-optimize-5"
1107 run_dump_test "x86-64-optimize-6"
1108 run_list_test "x86-64-optimize-7a" "-I${srcdir}/$subdir -march=+noavx -al"
1109 run_dump_test "x86-64-optimize-7b"
1110 run_list_test "x86-64-optimize-8" "-I${srcdir}/$subdir -march=+noavx2 -al"
1111 run_dump_test "x86-64-align-branch-1a"
1112 run_dump_test "x86-64-align-branch-1b"
1113 run_dump_test "x86-64-align-branch-1c"
1114 run_dump_test "x86-64-align-branch-1d"
1115 run_dump_test "x86-64-align-branch-1e"
1116 run_dump_test "x86-64-align-branch-1f"
1117 run_dump_test "x86-64-align-branch-1g"
1118 run_dump_test "x86-64-align-branch-1h"
1119 run_dump_test "x86-64-align-branch-1i"
1120 if { ![istarget "*-*-darwin*"] } then {
1121 run_dump_test "x86-64-align-branch-2a"
1122 run_dump_test "x86-64-align-branch-2b"
1123 run_dump_test "x86-64-align-branch-2c"
1125 run_dump_test "x86-64-align-branch-4a"
1126 run_dump_test "x86-64-align-branch-4b"
1127 run_dump_test "x86-64-align-branch-5"
1128 run_dump_test "x86-64-align-branch-6"
1129 run_dump_test "x86-64-align-branch-7"
1130 run_dump_test "x86-64-align-branch-8"
1131 run_dump_test "x86-64-align-branch-9"
1132 run_dump_test "x86-64-lfence-load"
1133 run_dump_test "x86-64-lfence-indbr-a"
1134 run_dump_test "x86-64-lfence-indbr-b"
1135 run_dump_test "x86-64-lfence-indbr-c"
1136 run_dump_test "x86-64-lfence-ret-a"
1137 run_dump_test "x86-64-lfence-ret-b"
1138 run_dump_test "x86-64-lfence-ret-c"
1139 run_dump_test "x86-64-lfence-ret-d"
1140 run_dump_test "x86-64-lfence-ret-e"
1141 run_dump_test "x86-64-lfence-byte"
1143 if { ![istarget "*-*-aix*"]
1144 && ![istarget "*-*-beos*"]
1145 && ![istarget "*-*-*bsd*"]
1146 && ![istarget "*-*-lynx*"]
1147 && ![istarget "*-*-moss*"]
1148 && ![istarget "*-*-nto-qnx*"]
1149 && ![istarget "*-*-rtems*"]
1150 && ![istarget "*-*-sco*"]
1151 && ![istarget "*-*-solaris*"]
1152 && ![istarget "*-*-sysv*"] } then {
1156 # ELF specific tests
1157 if [is_elf_format] then {
1158 # Verify that @unwind works.
1159 run_dump_test "x86-64-unwind"
1161 run_dump_test "reloc64"
1162 run_list_test "reloc64" "--defsym _bad_=1"
1163 run_dump_test "mixed-mode-reloc64"
1164 run_dump_test "x86-64-ifunc"
1165 run_dump_test "x86-64-opcode-inval"
1166 run_dump_test "x86-64-opcode-inval-intel"
1167 run_dump_test "intel-got64"
1168 run_dump_test "l1om"
1169 run_dump_test "k1om"
1170 run_dump_test "x86-64-localpic"
1171 run_dump_test "debug1"
1172 run_dump_test "x86-64-mpx-branch-1"
1173 run_dump_test "x86-64-mpx-branch-2"
1175 run_dump_test "x86-64-dw2-compress-2"
1176 run_dump_test "x86-64-dw2-compressed-2"
1178 run_dump_test "x86-64-size-1"
1179 run_dump_test "x86-64-size-2"
1180 run_dump_test "x86-64-size-3"
1181 run_dump_test "x86-64-size-4"
1182 run_dump_test "x86-64-size-5"
1183 run_list_test "x86-64-size-inval-1" "-al"
1185 run_dump_test "x86-64-relax-2"
1186 run_dump_test "x86-64-relax-3"
1187 run_dump_test "x86-64-relax-4"
1189 run_dump_test "x86-64-jump"
1190 run_dump_test "x86-64-branch-2"
1191 run_dump_test "x86-64-branch-3"
1192 run_list_test "x86-64-branch-4" "-al -mintel64"
1193 run_list_test "x86-64-branch-5" "-al"
1195 run_dump_test "x86-64-gotpcrel"
1196 run_dump_test "x86-64-gotpcrel-no-relax"
1197 run_dump_test "x86-64-gotpcrel-2"
1199 run_dump_test "x86-64-addend"
1200 run_dump_test "x86-64-nop-3"
1201 run_dump_test "x86-64-nop-4"
1202 run_dump_test "x86-64-nop-5"
1203 run_dump_test "x86-64-nop-6"
1204 run_dump_test "x86-64-unique"
1206 run_dump_test "evex-no-scale-64"
1207 run_dump_test "x86-64-property-1"
1208 run_dump_test "x86-64-property-2"
1209 run_dump_test "x86-64-property-3"
1211 if {[istarget "*-*-linux*"]} then {
1212 run_dump_test "x86-64-align-branch-3"
1217 set ASFLAGS "$old_ASFLAGS"