Fix zero_ext documentation
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.multi / multi-arch.exp
index beb8b9adade18a4b67d2a503be98918fa817faf5..b114a2ff74d4185c3c91c2f26a16763b87e3120c 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2009-2013 Free Software Foundation, Inc.
+# Copyright 2009-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
@@ -44,18 +44,34 @@ set binfile2 [standard_output_file ${exec2}]
 if [istarget "s390*-*-*"] {
     set march1 "-m64"
     set march2 "-m31"
+} elseif { [istarget "aarch64*-*-*"] } {
+    set march1 ""
+    set march2 ""
 } else {
     set march1 "-m64"
     set march2 "-m32"
 }
 
 if { [prepare_for_testing ${testfile}.exp ${exec1} "${srcfile1}" \
-         [list debug nowarnings additional_flags=${march1}]] } {
+         [list debug additional_flags=${march1}]] } {
     return -1
 }
 
+set options [list debug]
+
+if [istarget "aarch64*-*-*"] {
+    if {[info exists ARM_CC_FOR_TARGET]} {
+       lappend options "compiler=${ARM_CC_FOR_TARGET}"
+    } else {
+       unsupported "ARM compiler is not known"
+       return -1
+    }
+} else {
+    lappend options "additional_flags=${march2}"
+}
+
 if { [prepare_for_testing ${testfile}.exp ${exec2} "${srcfile2}" \
-         [list debug nowarnings additional_flags=${march2}]] } {
+        $options]} {
     return -1
 }
 
@@ -79,4 +95,4 @@ if ![runto_main] then {
 # Check we do have two inferiors loaded.
 
 gdb_test "info inferiors" \
-    "Executable.*${exec2}.*${exec1}.*"
+    "Executable.*${exec1}.*${exec2}.*"
This page took 0.024183 seconds and 4 git commands to generate.