ChangeLog rotatation and copyright year update
[deliverable/binutils-gdb.git] / gas / testsuite / gas / arm / arm.exp
index 20e51783c76a439933b0e092ddfc2376db794848..19c1a703a6647dd618f9e7b191729e17810f8502 100644 (file)
@@ -1,89 +1,23 @@
+# Copyright (C) 2012-2015 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.  
+
 #
 # Some ARM tests
 #
-proc run_errors_test { name opts tname} {
-    global srcdir subdir
-    set testname "$tname"
-    set file $srcdir/$subdir/$name
-    gas_run ${name}.s $opts ">&${name}.out"
-    if { [regexp_diff "${name}.out" "${file}.l"] } then {
-        fail $testname
-        verbose "output is [file_contents "${name}.out"]" 2
-        return
-    }
-    pass $testname
-}
-
-if {[istarget *arm*-*-*] || [istarget "xscale-*-*"]} then {
-    run_dump_test "inst"
-
-    run_dump_test "ldconst"
-
-    run_dump_test "armv1"
-
-    run_errors_test "armv1-bad" "-mcpu=arm7m" "ARM v1 errors"
-
-    gas_test "arm3.s" "-mcpu=arm3" $stdoptlist "Arm 3 instructions"
-
-    gas_test "arm6.s" "-mcpu=arm6" $stdoptlist "Arm 6 instructions"
-
-    gas_test "arm7dm.s" "-mcpu=arm7dm" $stdoptlist "Arm 7DM instructions"
-
-    run_dump_test "arm7t"
-
-    if {! [istarget arm*-*-aout] && ![istarget arm-*-pe]} then {
-       # The arm-aout port does not support Thumb mode.
-       gas_test "thumb.s" "-mcpu=arm7t" $stdoptlist "Thumb instructions"
-    }
-
-    gas_test "arch4t.s" "-march=armv4t" $stdoptlist "Arm architecture 4t instructions"
-
-    run_dump_test "arch5tej"
-
-    run_dump_test "copro"
-
-    gas_test "immed.s" "" $stdoptlist "immediate expressions"
-
-    gas_test "float.s" "-mcpu=arm7tdmi -mfpu=fpa" $stdoptlist "Core floating point instructions"
-
-    run_dump_test "fpa-monadic"
-
-    run_dump_test "fpa-dyadic"
-
-    run_dump_test "fpa-mem"
-
-    run_dump_test "vfp1xD"
-
-    run_dump_test "vfp1"
-
-    run_errors_test "vfp-bad" "-mfpu=vfp" "VFP errors"
-
-    run_dump_test "xscale"
-
-    run_dump_test "adrl"
-    
-    run_errors_test "req" "-mcpu=arm7m" ".req errors"
-
-    run_dump_test "maverick"
-    
-    if {[istarget *-*-elf*] || [istarget *-*-linux*]} then {
-       run_dump_test "pic"
-    }
-
-    gas_test "offset.s" "" $stdoptlist "OFFSET_IMM regression"
-}
-
-# Not all arm targets are bi-endian, so only run this test on ones
-# we know that are.  FIXME: We should probably also key off armeb/armel.
-
-if [istarget arm-*-pe] {
-    run_dump_test "le-fpconst"
-
-    # Since big-endian numbers have the normal format, this doesn't exist.
-    #run_dump_test "be-fpconst"
-}
 
-if [istarget xscale-*] {
-    run_dump_test "iwmmxt"
-    run_errors_test "iwmmxt-bad" "-mcpu=iwmmxt" "iWMMXt errors"
+if {[istarget arm*-*-*]} {
+    run_dump_tests [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
 }
This page took 0.026499 seconds and 4 git commands to generate.