[ARC] Enable .cfi_* pseudo-ops.
[deliverable/binutils-gdb.git] / gas / testsuite / gas / cfi / cfi.exp
index 1999db628641bd6c407c44bdecd46dd3bb4e79fc..4a8d3bae62afe47643a6f4a5fcda5e03234177c3 100644 (file)
@@ -1,3 +1,19 @@
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  
+
 if { ![is_elf_format] && ![is_pecoff_format] } then {
     return
 }
@@ -35,6 +51,10 @@ if  { [istarget "i*86-*-*"] || [istarget "x86_64-*-*"] } then {
        set ASFLAGS "$old_ASFLAGS"
     }
 
+    if { [is_elf_format] } then {
+       run_dump_test "cfi-label"
+    }
+
     if { [is_pecoff_format] } then {
        run_dump_test "reloc-pe-i386"
     }
@@ -44,7 +64,7 @@ if  { [istarget "i*86-*-*"] || [istarget "x86_64-*-*"] } then {
     run_dump_test "cfi-alpha-2"
     run_dump_test "cfi-alpha-3"
 
-} elseif { [istarget ppc*-*-*] || [istarget powerpc*-*-*] } then {
+} elseif { [istarget powerpc*-*-*] } then {
     run_dump_test "cfi-ppc-1"
 
 } elseif { [istarget s390*-*-*] } then {
@@ -53,7 +73,7 @@ if  { [istarget "i*86-*-*"] || [istarget "x86_64-*-*"] } then {
        run_dump_test "cfi-s390x-1"
     }
 
-} elseif { [istarget "m68*-*"] } then {
+} elseif { [istarget "m68*-*"] && ![istarget "m68hc1*-*"] } then {
     run_dump_test "cfi-m68k"
 
 } elseif { [istarget sparc*-*-*] } then {
@@ -71,8 +91,13 @@ if  { [istarget "i*86-*-*"] || [istarget "x86_64-*-*"] } then {
     } else {
        run_dump_test "cfi-sh-1"
     }
-
-} elseif { [istarget "arm*-*"] || [istarget "xscale*-*"] } then {
+} elseif { [istarget "arc*-*-*"] } then {
+    run_dump_test "cfi-arc-1"
+} elseif { [istarget "arm*-*"] } then {
+    # Only ELF based ARM targets support CFI.
+    if { [is_pecoff_format] } then {
+       return
+    }
     run_dump_test "cfi-arm-1"
 
 } elseif { [istarget "mips*-*"] } then {
@@ -96,10 +121,10 @@ if { ![istarget "hppa64*-*"] } then {
     # This test uses .subsection/.previous which are elf-specific.
     run_dump_test "cfi-common-5"
   }
-  run_dump_test "cfi-common-7"
-}
-
-# MIPS doesn't support PC relative cfi directives.
-if { ![istarget "mips*-*"] } then {
+  # Some targets don't support PC relative cfi directives
+  if { ![istarget "mips*-*"] &&
+       !([istarget powerpc*-*-*] && [is_pecoff_format]) } then {
     run_dump_test "cfi-common-6"
+  }
+  run_dump_test "cfi-common-7"
 }
This page took 0.026237 seconds and 4 git commands to generate.