4 proc run_list_test { name opts } {
6 set testname "i386 $name"
7 set file $srcdir/$subdir/$name
8 gas_run ${name}.s $opts ">&dump.out"
9 if { [regexp_diff "dump.out" "${file}.l"] } then {
11 verbose "output is [file_contents "dump.out"]" 2
18 if [istarget "i*86-*-*"] then {
20 run_list_test "float" "-al"
21 run_list_test "general" "-al --listing-lhs-width=2"
22 run_list_test "inval" "-al"
23 run_list_test "modrm" "-al --listing-lhs-width=2"
25 run_dump_test "opcode"
27 run_dump_test "prefix"
29 run_dump_test "katmai"
32 # These tests require support for 8 and 16 bit relocs,
33 # so we only run them for ELF and COFF targets.
34 if {[istarget "*-*-elf*"] || [istarget "*-*-linux*"] || [istarget "*-*-coff*"]} then {
36 run_dump_test "jump16"
37 run_list_test "white" "-al --listing-lhs-width=3"