x86: Add -O[2|s] assembler command-line options
[deliverable/binutils-gdb.git] / gas / testsuite / gas / cfi / cfi.exp
index 3071ec398bb6b703fc43a59eae8b864c28605373..588c5d5f3b406c17a874d1c3f6e455fa584718d4 100644 (file)
@@ -1,5 +1,4 @@
-# Copyright 2012
-# Free Software Foundation, Inc.
+# Copyright (C) 2012-2018 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
@@ -52,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"
     }
@@ -61,6 +64,25 @@ if  { [istarget "i*86-*-*"] || [istarget "x86_64-*-*"] } then {
     run_dump_test "cfi-alpha-2"
     run_dump_test "cfi-alpha-3"
 
+} 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 "hppa*-linux*"] } then {
+    run_dump_test "cfi-hppa-1"
+
+} elseif { [istarget "m68*-*"] && ![istarget "m68hc1*-*"] } then {
+    run_dump_test "cfi-m68k"
+
+} elseif { [istarget "mips*-*"] } then {
+    run_dump_test "cfi-mips-1"
+
 } elseif { [istarget powerpc*-*-*] } then {
     run_dump_test "cfi-ppc-1"
 
@@ -70,8 +92,15 @@ if  { [istarget "i*86-*-*"] || [istarget "x86_64-*-*"] } then {
        run_dump_test "cfi-s390x-1"
     }
 
-} elseif { [istarget "m68*-*"] } then {
-    run_dump_test "cfi-m68k"
+} elseif [istarget "sh*-*"] then {
+    if { [istarget "*-pe" ] || [istarget "*-rtemscoff*"] } then {
+       return
+    }
+
+    if { [istarget sh64*-*-*] || [istarget sh5*-*-*] } then {
+    } else {
+       run_dump_test "cfi-sh-1"
+    }
 
 } elseif { [istarget sparc*-*-*] } then {
     global NM
@@ -83,23 +112,6 @@ if  { [istarget "i*86-*-*"] || [istarget "x86_64-*-*"] } 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*-*"] } then {
-    # Only ELF based ARM targets support CFI.
-    if { [is_pecoff_format] } then {
-       return
-    }
-    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
 }
@@ -123,4 +135,6 @@ if { ![istarget "hppa64*-*"] } then {
     run_dump_test "cfi-common-6"
   }
   run_dump_test "cfi-common-7"
+  run_dump_test "cfi-common-8"
+  run_dump_test "cfi-common-9"
 }
This page took 0.025348 seconds and 4 git commands to generate.