Add script to build and test GDB using enable-targets=all.
[deliverable/binutils-gdb.git] / gas / testsuite / gas / cfi / cfi.exp
index d52803f4dcd7b955b3b33c146f12737a8c87c260..593c8ff4e6b05c10abbe3e369f4e2cc547004db2 100644 (file)
@@ -1,19 +1,65 @@
+if ![is_elf_format] then {
+    return
+}
+
 if [istarget "x86_64-*"] then {
     run_dump_test "cfi-x86_64"
-}
 
-if [istarget "i?86-*"] then {
+} elseif [istarget "i?86-*"] then {
     run_dump_test "cfi-i386"
-}
 
-if { [istarget alpha*-*-*] } then {
+} elseif { [istarget alpha*-*-*] } then {
+    run_dump_test "cfi-alpha-1"
+    run_dump_test "cfi-alpha-2"
+    run_dump_test "cfi-alpha-3"
+
+} elseif { [istarget ppc*-*-*] || [istarget powerpc*-*-*] } then {
+    run_dump_test "cfi-ppc-1"
+
+} elseif { [istarget s390*-*-*] } then {
+    run_dump_test "cfi-s390-1"
+    if { [istarget s390x*-*-*] } then {
+       run_dump_test "cfi-s390x-1"
+    }
+
+} elseif { [istarget "m68*-*"] } then {
+    run_dump_test "cfi-m68k"
 
-    set elf [expr [istarget *-*-elf*] \
-                  || [istarget *-*-linux*] \
-                  || [istarget *-*-freebsd*] \
-                  || [istarget *-*-netbsd*] ]
+} elseif { [istarget sparc*-*-*] } then {
+    global NM
+    global NMFLAGS
 
-    if $elf {
-       run_dump_test "cfi-alpha-1"
+    set nm_status [gas_host_run "$NM $NMFLAGS --help" ""]
+    run_dump_test "cfi-sparc-1"
+    if { [regexp "elf64\[_-\]sparc" [lindex $nm_status 1]] } then {
+       run_dump_test "cfi-sparc64-1"
     }
+
+} elseif [istarget "sh*-*"] then {
+    if { [istarget sh64*-*-*] || [istarget sh5*-*-*] } then {
+    } else {
+       run_dump_test "cfi-sh-1"
+    }
+
+} elseif { [istarget "arm*-*"] || [istarget "xscale*-*"] } then {
+    run_dump_test "cfi-arm-1"
+
+} elseif { [istarget "mips*-*"] } then {
+    run_dump_test "cfi-mips-1"
+} elseif { [istarget "hppa*-linux*"] } then {
+    run_dump_test "cfi-hppa-1"
+} else {
+    return
+}
+
+run_list_test "cfi-diag-1" ""
+run_dump_test "cfi-common-1"
+run_dump_test "cfi-common-2"
+run_dump_test "cfi-common-3"
+run_dump_test "cfi-common-4"
+run_dump_test "cfi-common-5"
+
+# MIPS doesn't support PC relative cfi directives
+if { ![istarget "mips*-*"] } then {
+    run_dump_test "cfi-common-6"
 }
This page took 0.023974 seconds and 4 git commands to generate.