4 proc run_list_test { name opts } {
6 set testname "vtable $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
17 # Vtable bits are only supported by ELF targets.
18 if { ( [istarget "*-*-elf*"] || [istarget "*-*-linux*"])
19 && ![istarget *-*-linux*aout*]
20 && ![istarget *-*-linux*oldld*] } then {
22 # These tests are not (yet) supported on some targets.
23 if { [istarget "ia64-*"]
24 || [istarget "hppa*64*-*-*"]
25 || [istarget "i960-*-*"]
26 || [istarget "arc*-*-*"]
27 || [istarget "alpha*-*-*"]
28 || [istarget "d30v-*-*"] } then {
32 # not yet supported by ARC
33 if {[istarget "arc*-*-*"]} {
37 run_dump_test "inherit0"
38 run_list_test "inherit1" "-al"
40 # The vtable entry results are different on Rel and Rela targets.
41 if {[istarget "i*86-*-*"]
42 || [istarget "d10v-*-*"]
43 || [istarget "mips*-*-*"]
44 || [istarget "strongarm*-*-*"]
45 || [istarget "xscale*-*-*"]
46 || [istarget "arm*-*-*"] } then {
48 run_dump_test "entry0"
52 run_dump_test "entry1"