aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/mips/elf_ase_mips16.d8
-rw-r--r--gas/testsuite/gas/mips/elf_ase_mips16.s3
-rw-r--r--gas/testsuite/gas/mips/mips.exp3
-rw-r--r--ld/testsuite/ChangeLog4
-rw-r--r--ld/testsuite/ld-mips-elf/mips16-1.d6
6 files changed, 29 insertions, 1 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 9860719..76a4462 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2002-07-29 Chris Demetriou <cgd@broadcom.com>
+
+ * gas/mips/elf_ase_mips16.d: New file to test ELF MIPS16 ASE marking.
+ * gas/mips/elf_ase_mips16.s: Likewise.
+ * gas/mips/mips.exp: Run the new test.
+
2002-07-26 Alan Modra <amodra@bigpond.net.au>
* gas/ppc/altivec.d: Invoke "as" with "-a32".
diff --git a/gas/testsuite/gas/mips/elf_ase_mips16.d b/gas/testsuite/gas/mips/elf_ase_mips16.d
new file mode 100644
index 0000000..df746b9
--- /dev/null
+++ b/gas/testsuite/gas/mips/elf_ase_mips16.d
@@ -0,0 +1,8 @@
+# name: ELF MIPS16 ASE markings
+# source: elf_ase_mips16.s
+# objdump: -p
+# as: -mips16
+
+.*:.*file format.*mips.*
+private flags = [0-9a-f]*[4-7c-f]......: .*[[,]mips16[],].*
+
diff --git a/gas/testsuite/gas/mips/elf_ase_mips16.s b/gas/testsuite/gas/mips/elf_ase_mips16.s
new file mode 100644
index 0000000..cf5b2e5
--- /dev/null
+++ b/gas/testsuite/gas/mips/elf_ase_mips16.s
@@ -0,0 +1,3 @@
+# Test of MIPS16 ASE file markings.
+
+ # no actual contents necessary!
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index bf7cb46..1b02f71 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -180,6 +180,9 @@ if { [istarget mips*-*-*] } then {
run_dump_test "elf_e_flags3"
run_dump_test "elf_e_flags4"
+ # Verify that ASE markings are handled properly.
+ if { !$no_mips16 } { run_dump_test "elf_ase_mips16" }
+
run_dump_test "mips-gp32-fp32-pic"
run_dump_test "mips-gp32-fp64-pic"
run_dump_test "mips-gp64-fp32-pic"
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 28d551e..ca4509a 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2002-07-29 Chris Demetriou <cgd@broadcom.com>
+
+ * ld-mips-elf/mips16-1.d: Check that ASE flag is actually set.
+
2002-07-26 Richard Sandiford <rsandifo@redhat.com>
* ld-mips-elf/mips16-1.d,
diff --git a/ld/testsuite/ld-mips-elf/mips16-1.d b/ld/testsuite/ld-mips-elf/mips16-1.d
index 2b99668..77d1316 100644
--- a/ld/testsuite/ld-mips-elf/mips16-1.d
+++ b/ld/testsuite/ld-mips-elf/mips16-1.d
@@ -1,5 +1,9 @@
#source: mips16-1a.s -no-mips16
#source: mips16-1b.s -mips16
#ld: -r
-#objdump: -d
+#objdump: -pd
+
+.*:.*file format.*mips.*
+private flags = [0-9a-f]*[4-7c-f]......: .*[[,]mips16[],].*
+
#pass