+2002-12-30 Chris Demetriou <cgd@broadcom.com>
+
+ * gas/mips/elf_arch_mips1.d: New test.
+ * gas/mips/elf_arch_mips2.d: New test.
+ * gas/mips/elf_arch_mips3.d: New test.
+ * gas/mips/elf_arch_mips4.d: New test.
+ * gas/mips/elf_arch_mips5.d: New test.
+ * gas/mips/elf_arch_mips32.d: New test.
+ * gas/mips/elf_arch_mips32r2.d: New test.
+ * gas/mips/elf_arch_mips64.d: New test.
+ * gas/mips/empty.s: New test source file.
+ * gas/mips/mips.exp: Run new tests.
+
+ * gas/mips/elf_ase_mips16.d: Change to use empty.s
+ * gas/mips/elf_ase_mips16.s: Remove.
+
2002-12-30 Chris Demetriou <cgd@broadcom.com>
* gas/mips/cp0-names-mips32r2.d: New test.
--- /dev/null
+# name: ELF MIPS1 markings
+# source: empty.s
+# objdump: -p
+# as: -march=mips1
+
+.*:.*file format.*elf.*mips.*
+# Note: objdump omits leading zeros, so must check for the fact that
+# flags are _not_ 8 chars long.
+private flags = (.......|......|.....|....|...|..|.): .*\[mips1\].*
+
--- /dev/null
+# name: ELF MIPS2 markings
+# source: empty.s
+# objdump: -p
+# as: -march=mips2
+
+.*:.*file format.*elf.*mips.*
+private flags = 1.......: .*\[mips2\].*
+
--- /dev/null
+# name: ELF MIPS3 markings
+# source: empty.s
+# objdump: -p
+# as: -march=mips3
+
+.*:.*file format.*elf.*mips.*
+private flags = 2.......: .*\[mips3\].*
+
--- /dev/null
+# name: ELF MIPS32 markings
+# source: empty.s
+# objdump: -p
+# as: -march=mips32
+
+.*:.*file format.*elf.*mips.*
+private flags = 5.......: .*\[mips32\].*
+
--- /dev/null
+# name: ELF MIPS32r2 markings
+# source: empty.s
+# objdump: -p
+# as: -march=mips32r2
+
+.*:.*file format.*elf.*mips.*
+private flags = 7.......: .*\[mips32r2\].*
+
--- /dev/null
+# name: ELF MIPS4 markings
+# source: empty.s
+# objdump: -p
+# as: -march=mips4
+
+.*:.*file format.*elf.*mips.*
+private flags = 3.......: .*\[mips4\].*
+
--- /dev/null
+# name: ELF MIPS5 markings
+# source: empty.s
+# objdump: -p
+# as: -march=mips5
+
+.*:.*file format.*elf.*mips.*
+private flags = 4.......: .*\[mips5\].*
+
--- /dev/null
+# name: ELF MIPS64 markings
+# source: empty.s
+# objdump: -p
+# as: -march=mips64
+
+.*:.*file format.*elf.*mips.*
+private flags = 6.......: .*\[mips64\].*
+
# name: ELF MIPS16 ASE markings
-# source: elf_ase_mips16.s
+# source: empty.s
# objdump: -p
# as: -mips16
+++ /dev/null
-# Test of MIPS16 ASE file markings.
-
- # no actual contents necessary!
--- /dev/null
+# An empty source file for tests that need no instructions.
+
+ # No actual contents necessary!
run_dump_test "elf_e_flags3"
run_dump_test "elf_e_flags4"
+ # Check EF_MIPS_ARCH markings for each supported architecture.
+ run_dump_test "elf_arch_mips1"
+ run_dump_test "elf_arch_mips2"
+ run_dump_test "elf_arch_mips3"
+ run_dump_test "elf_arch_mips4"
+ run_dump_test "elf_arch_mips5"
+ run_dump_test "elf_arch_mips32"
+ run_dump_test "elf_arch_mips32r2"
+ run_dump_test "elf_arch_mips64"
+
# Verify that ASE markings are handled properly.
if { !$no_mips16 } { run_dump_test "elf_ase_mips16" }