IA-64 ELF support.
[deliverable/binutils-gdb.git] / gas / testsuite / gas / vtable / vtable.exp
CommitLineData
252b5132
RH
1#
2# vtable tests
3#
4proc 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
18if { ([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
252b5132
RH
27 # not supported by D30V
28 if {[istarget "d30v-*-*"]} {
29 return
30 }
31
0dbfb37c
ILT
32 # not yet supported by i960
33 if {[istarget "i960-*-*"]} {
34 return
35 }
36
252b5132
RH
37 run_dump_test "inherit0"
38 run_list_test "inherit1" "-al"
39
40 # The vtable entry results are different on Rel and Rela targets.
f3d180e9
CM
41 if {[istarget "i*86-*-*"]
42 || [istarget "mips*-*-*"]
c5089c84 43 || [istarget "strongarm*-*-*"]
f3d180e9 44 || [istarget "arm*-*-*"]} then {
252b5132
RH
45
46 run_dump_test "entry0"
47
48 } else {
49
50 run_dump_test "entry1"
51
52 }
53}
This page took 0.050712 seconds and 4 git commands to generate.