]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gas/testsuite/gas/cfi/cfi.exp
* subsegs.h (struct frchain): Add frch_cfi_data field.
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / cfi / cfi.exp
CommitLineData
fa87b337
RH
1# ??? This probably shouldn't be replicated here...
2proc run_list_test { name opts } {
3 global srcdir subdir
4 set testname "cfi $name"
5 set file $srcdir/$subdir/$name
6 gas_run ${name}.s $opts ">&dump.out"
7 if { [regexp_diff "dump.out" "${file}.l"] } then {
8 fail $testname
9 verbose "output is [file_contents "dump.out"]" 2
10 return
11 }
12 pass $testname
13}
14
d04428bd
AM
15if ![is_elf_format] then {
16 return
17}
fa87b337 18
2ebaa23b
AM
19if [istarget "x86_64-*"] then {
20 run_dump_test "cfi-x86_64"
2ebaa23b 21
d04428bd 22} elseif [istarget "i?86-*"] then {
2ebaa23b 23 run_dump_test "cfi-i386"
f37f01cf 24
d04428bd
AM
25} elseif { [istarget alpha*-*-*] } then {
26 run_dump_test "cfi-alpha-1"
27 run_dump_test "cfi-alpha-2"
28 run_dump_test "cfi-alpha-3"
f37f01cf 29
75e21f08
JJ
30} elseif { [istarget ppc*-*-*] || [istarget powerpc*-*-*] } then {
31 run_dump_test "cfi-ppc-1"
32
33} elseif { [istarget s390*-*-*] } then {
34 run_dump_test "cfi-s390-1"
35 if { [istarget s390x*-*-*] } then {
36 run_dump_test "cfi-s390x-1"
37 }
38
c04898f8
AS
39} elseif { [istarget "m68*-*"] } then {
40 run_dump_test "cfi-m68k"
41
364b6d8b
JJ
42} elseif { [istarget sparc*-*-*] } then {
43 global NM
44 global NMFLAGS
45 global srcdir
46
47 catch "exec $srcdir/lib/run $NM $NMFLAGS --help" nm_help
48 run_dump_test "cfi-sparc-1"
49 if { [regexp "elf64\[_-\]sparc" $nm_help] } then {
50 run_dump_test "cfi-sparc64-1"
51 }
2ce4cc60
KK
52
53} elseif [istarget "sh*-*"] then {
54 if { [istarget sh64*-*-*] || [istarget sh5*-*-*] } then {
55 } else {
56 run_dump_test "cfi-sh-1"
57 }
58
a394c00f
NC
59} elseif { [istarget "arm*-*"] || [istarget "xscale*-*"] } then {
60 run_dump_test "cfi-arm-1"
61
5862107c
EC
62} elseif { [istarget "mips*-*"] } then {
63 run_dump_test "cfi-mips-1"
406601a1
RC
64} elseif { [istarget "hppa*-linux*"] } then {
65 run_dump_test "cfi-hppa-1"
d04428bd
AM
66} else {
67 return
f37f01cf 68}
fa87b337 69
d04428bd
AM
70run_list_test "cfi-diag-1" ""
71run_dump_test "cfi-common-1"
72run_dump_test "cfi-common-2"
cdfbf930 73run_dump_test "cfi-common-3"
289040ca 74run_dump_test "cfi-common-4"
ae424f82 75run_dump_test "cfi-common-5"