* gas/vtable/vtable.exp: Added [istarget "arm*-*-*"] to run dump
[deliverable/binutils-gdb.git] / gas / testsuite / gas / vtable / vtable.exp
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.
18 if { ([istarget "*-*-elf*"]
19 || [istarget "*-*-linux*"])
20 && ![istarget *-*-linux*aout*]
21 && ![istarget *-*-linux*oldld*] } then {
22
23 # not supported by D30V
24 if {[istarget "d30v-*-*"]} {
25 return
26 }
27
28 # not yet supported by i960
29 if {[istarget "i960-*-*"]} {
30 return
31 }
32
33 run_dump_test "inherit0"
34 run_list_test "inherit1" "-al"
35
36 # The vtable entry results are different on Rel and Rela targets.
37 if {[istarget "i*86-*-*"]
38 || [istarget "mips*-*-*"]
39 || [istarget "arm*-*-*"]} then {
40
41 run_dump_test "entry0"
42
43 } else {
44
45 run_dump_test "entry1"
46
47 }
48 }
This page took 0.044277 seconds and 5 git commands to generate.