+# Copyright 2012
+# 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
#
-if [istarget arm-*-*] then {
- gas_test "inst.s" "" $stdoptlist "Basic instruction set"
-
- gas_test "arm3.s" "" $stdoptlist "Arm 3 instructions"
-
- gas_test "arm6.s" "" $stdoptlist "Arm 6 instructions"
-
- gas_test "arm7dm.s" "" $stdoptlist "Arm 7DM instructions"
-
- run_dump_test "arm7t"
-
- gas_test "copro.s" "" $stdoptlist "Co processor instructions"
-
- gas_test "float.s" "" $stdoptlist "Core floating point instructions"
-}
-
-# 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 arm*-*-*]} {
+ run_dump_tests [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
}