aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/mips/mips.exp22
2 files changed, 16 insertions, 11 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index ca4cf6b..3f0d305 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2001-02-17 Chris Demetriou <cgd@broadcom.com>
+
+ * gas/mips/mips.exp: Don't attempt the elf_e_flags family of
+ tests if not ELF; they test ELF-specific features.
+
2001-02-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* gas/mri/mri.exp: Don't execute the M68K specific tests
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index b5deb35..960208d 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -91,18 +91,18 @@ if [istarget mips*-*-*] then {
run_dump_test "mips32"
run_dump_test "mips64"
- # Make sure that -mcpu=FOO and -mFOO are equivalent. Assemble a file
- # containing 4650-specific instructions with -m4650 and -mcpu=4650,
- # and verify that they're the same. Specifically, we're checking
- # that the EF_MIPS_MACH field is set, and that the 4650 'mul'
- # instruction does get used. In previous versions of GAS,
- # only -mcpu=4650 would set the EF_MIPS_MACH field; -m4650 wouldn't.
- run_dump_test "elf_e_flags1"
- run_dump_test "elf_e_flags2"
- run_dump_test "elf_e_flags3"
- run_dump_test "elf_e_flags4"
-
if $svr4pic {
+ # Make sure that -mcpu=FOO and -mFOO are equivalent. Assemble a file
+ # containing 4650-specific instructions with -m4650 and -mcpu=4650,
+ # and verify that they're the same. Specifically, we're checking
+ # that the EF_MIPS_MACH field is set, and that the 4650 'mul'
+ # instruction does get used. In previous versions of GAS,
+ # only -mcpu=4650 would set the EF_MIPS_MACH field; -m4650 wouldn't.
+ run_dump_test "elf_e_flags1"
+ run_dump_test "elf_e_flags2"
+ run_dump_test "elf_e_flags3"
+ run_dump_test "elf_e_flags4"
+
run_dump_test "elf-rel"
if [istarget mips64*-*-*] {
run_dump_test "elf-rel2"