Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | # |
2 | # vtable tests | |
3 | # | |
4 | proc run_list_test { name opts } { | |
5 | global srcdir subdir | |
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 { | |
10 | fail $testname | |
11 | verbose "output is [file_contents "dump.out"]" 2 | |
12 | return | |
13 | } | |
14 | pass $testname | |
15 | } | |
16 | ||
17 | # Vtable bits are only supported by ELF targets. | |
966d5bec ILT |
18 | if { ([istarget "*-*-elf*"] |
19 | || [istarget "*-*-linux*"]) | |
20 | && ![istarget *-*-linux*aout*] | |
21 | && ![istarget *-*-linux*oldld*] } then { | |
252b5132 | 22 | |
800eeca4 JW |
23 | if {[istarget "ia64-*"]} then { |
24 | return | |
25 | } | |
26 | ||
4b6341e9 AM |
27 | if {[istarget "hppa*-*-*"]} then { |
28 | return | |
29 | } | |
30 | ||
252b5132 RH |
31 | # not supported by D30V |
32 | if {[istarget "d30v-*-*"]} { | |
33 | return | |
34 | } | |
35 | ||
0dbfb37c ILT |
36 | # not yet supported by i960 |
37 | if {[istarget "i960-*-*"]} { | |
38 | return | |
39 | } | |
40 | ||
252b5132 RH |
41 | run_dump_test "inherit0" |
42 | run_list_test "inherit1" "-al" | |
43 | ||
44 | # The vtable entry results are different on Rel and Rela targets. | |
f3d180e9 CM |
45 | if {[istarget "i*86-*-*"] |
46 | || [istarget "mips*-*-*"] | |
c5089c84 | 47 | || [istarget "strongarm*-*-*"] |
f3d180e9 | 48 | || [istarget "arm*-*-*"]} then { |
252b5132 RH |
49 | |
50 | run_dump_test "entry0" | |
51 | ||
52 | } else { | |
53 | ||
54 | run_dump_test "entry1" | |
55 | ||
56 | } | |
57 | } |