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 # These tests are not (yet) supported on some targets.
18 proc vtable_setup_xfails { } {
19 setup_xfail "alpha*-*" "arc-*" "avr-*" "d30v-*"
20 setup_xfail "h8300*-*" "hppa*64*-*-*hpux*"
21 setup_xfail "i370-*" "i860-*" "i960-*" "ia64-*" "ip2k-*"
22 setup_xfail "mn10200-*" "or32-*" "sparc64*-*"
25 # Vtable bits are only supported by ELF targets.
26 if { ( [istarget "*-*-elf*"] || [istarget "*-*-linux*"])
27 && ![istarget *-*-linux*aout*]
28 && ![istarget *-*-linux*ecoff*]
29 && ![istarget *-*-linux*oldld*] } then {
32 run_dump_test "inherit0"
34 # This particular test is supposed to fail..
35 run_list_test "inherit1" "-al"
37 # The vtable entry results are different on Rel and Rela targets.
39 if {[istarget "arm*-*"]
41 || [istarget "d10v-*"]
43 || [istarget "i*86-*"]
44 || [istarget "m32r-*"]
45 || ([istarget "mips*-*"]
46 && ! [istarget "mips64*-*-linux*"]
47 && ! [istarget "mips*-*-irix6*"])
48 || [istarget "m68hc*-*"]
49 || [istarget "or32-*"]
50 || [istarget "strongarm*-*"]
51 || [istarget "xscale*-*"] } then {
53 run_dump_test "entry0"
57 run_dump_test "entry1"