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*"]
19 || [istarget "*-*-linux*"])
20 && ![istarget *-*-linux*aout*]
21 && ![istarget *-*-linux*oldld*] } then {
23 if {[istarget "ia64-*"]} then {
27 # not supported by D30V
28 if {[istarget "d30v-*-*"]} {
32 # not yet supported by i960
33 if {[istarget "i960-*-*"]} {
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 "mips*-*-*"]
43 || [istarget "strongarm*-*-*"]
44 || [istarget "arm*-*-*"]} then {
46 run_dump_test "entry0"
50 run_dump_test "entry1"