]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
MIPS/LD/testsuite: Correct mips-elf.exp test ABI/emul/endian arrangement
authorMaciej W. Rozycki <macro@mips.com>
Thu, 12 Jul 2018 19:01:44 +0000 (20:01 +0100)
committerMaciej W. Rozycki <macro@mips.com>
Thu, 12 Jul 2018 19:01:44 +0000 (20:01 +0100)
Similarly to commit 86b24e15c45b ("MIPS/LD/testsuite: Correct
comm-data.exp test ABI/emul/endian arrangement") update the mips-elf.exp
test script to:

- correctly select emulations for targets using non-traditional MIPS
  emulations,

- correctly select ABIs for targets that do not support all of them,

- use the default endianness selection where possible to benefit targets
  that support only one,

- simplify test invocation by providing ABI-specific `run_dump_test'
  wrappers, specifically `run_dump_test_o32', `run_dump_test_n32',
  `run_dump_test_n64' and `run_dump_test_eabi', which remove the need to
  use conditionals across the Expect script or to repeat ABI-specific
  GAS and LD flags with each invocation,

removing numerous test failures for `mips-sgi-irix6', `mips64-openbsd',
`mips64el-openbsd' and `mips64el-ps2-elf' targets and broadening
coverage for several MIPS targets.

There are some new failures for the `mips64el-ps2-elf' target with tests
that were not previously run for that target:

FAIL: MIPS16 link branch to absolute expression (n32)
FAIL: MIPS16 link branch to absolute expression 1 (n32)
FAIL: MIPS16 link branch to absolute expression 2 (n32)
FAIL: microMIPS link branch to absolute expression (n32)
FAIL: MIPS ELF got reloc n32
FAIL: MIPS ELF xgot reloc n32
FAIL: undefined weak symbol overflow (n32)
FAIL: R_MIPS16_HI16 and R_MIPS16_LO16 relocs n32
FAIL: ld-mips-elf/attr-gnu-4-0-n32-ph
FAIL: ld-mips-elf/attr-gnu-4-1-n32-ph
FAIL: ld-mips-elf/attr-gnu-4-2-n32-ph
FAIL: ld-mips-elf/attr-gnu-4-3-n32-ph
FAIL: MIPSr6 JALR reloc unaligned/cross-mode link test (n32)

which are mostly due to dump discrepancies caused by mapping differences
coming from the default linker scripts used by these test cases, or
sometimes because of the specific MIPS processor architecture recorded
in the ELF file taking precedence over the general MIPS ISA level also
recorded.  Finally, the R_MIPS16_HI16/R_MIPS16_LO16 relocation test
failure is a preexisting issue with the IRIX style emulation.

These failures will have to be addressed separately.

ld/
* testsuite/ld-mips-elf/mips-elf.exp (run_dump_test_abi)
(run_dump_test_o32, run_dump_test_n32, run_dump_test_n64)
(run_dump_test_eabi): New procedures.
(has_newabi, has_elf32): Remove variables.
(has_abi): New associative array variable.
(abi_asflags, abi_ldflags): Update settings across targets.
(irixemul): New variable.
Replace `run_dump_test' calls where applicable throughout with
`run_dump_test_o32', `run_dump_test_n32', `run_dump_test_n64'
and `run_dump_test_eabi' as appropriate.  Remove explicit
passing of `abi_asflags' and `abi_ldflags'.  Use `noarch' for
tests that require their own architecture setting.  Force the
big endianness for tests that require it.  Select the endianness
required for `objdump invocation with the `reloc-2' test.
Conditionalize tests run via `run_ld_link_tests' on the ABI
required and use the ABI list from the `has_abi' array where
appropriate.
* testsuite/ld-mips-elf/attr-gnu-4-0-n32-ph.d: Remove ABI and
endianness selection options from `ld' and `source' tags.  Relax
output format matching.
* testsuite/ld-mips-elf/attr-gnu-4-0-n64-ph.d: Likewise.
* testsuite/ld-mips-elf/attr-gnu-4-1-n32-ph.d: Likewise.
* testsuite/ld-mips-elf/attr-gnu-4-1-n64-ph.d: Likewise.
* testsuite/ld-mips-elf/attr-gnu-4-2-n32-ph.d: Likewise.
* testsuite/ld-mips-elf/attr-gnu-4-2-n64-ph.d: Likewise.
* testsuite/ld-mips-elf/attr-gnu-4-3-n32-ph.d: Likewise.
* testsuite/ld-mips-elf/attr-gnu-4-3-n64-ph.d: Likewise.
* testsuite/ld-mips-elf/bal-jalx-addend-micromips-n32.d: Remove
ABI and endianness selection options from `as', `ld', `source'
tags, and also the `-march=from-abi' option.  Remove the `as'
tag where it would become empty.
* testsuite/ld-mips-elf/bal-jalx-addend-micromips-n64.d:
Likewise.
* testsuite/ld-mips-elf/bal-jalx-addend-micromips.d: Likewise.
* testsuite/ld-mips-elf/bal-jalx-addend-n32.d: Likewise.
* testsuite/ld-mips-elf/bal-jalx-addend-n64.d: Likewise.
* testsuite/ld-mips-elf/bal-jalx-addend.d: Likewise.
* testsuite/ld-mips-elf/bal-jalx-local-micromips-n32.d:
Likewise.
* testsuite/ld-mips-elf/bal-jalx-local-micromips-n64.d:
Likewise.
* testsuite/ld-mips-elf/bal-jalx-local-micromips.d: Likewise.
* testsuite/ld-mips-elf/bal-jalx-local-n32.d: Likewise.
* testsuite/ld-mips-elf/bal-jalx-local-n64.d: Likewise.
* testsuite/ld-mips-elf/bal-jalx-local.d: Likewise.
* testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n32.d:
Likewise.
* testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n64.d:
Likewise.
* testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips.d:
Likewise.
* testsuite/ld-mips-elf/bal-jalx-pic-ignore-n32.d: Likewise.
* testsuite/ld-mips-elf/bal-jalx-pic-ignore-n64.d: Likewise.
* testsuite/ld-mips-elf/bal-jalx-pic-ignore.d: Likewise.
* testsuite/ld-mips-elf/bal-jalx-pic-micromips-n32.d: Likewise.
* testsuite/ld-mips-elf/bal-jalx-pic-micromips-n64.d: Likewise.
* testsuite/ld-mips-elf/bal-jalx-pic-micromips.d: Likewise.
* testsuite/ld-mips-elf/bal-jalx-pic-n32.d: Likewise.
* testsuite/ld-mips-elf/bal-jalx-pic-n64.d: Likewise.
* testsuite/ld-mips-elf/bal-jalx-pic.d: Likewise.
* testsuite/ld-mips-elf/branch-absolute-addend-n32.d: Likewise.
* testsuite/ld-mips-elf/branch-absolute-addend-n64.d: Likewise.
* testsuite/ld-mips-elf/branch-absolute-addend.d: Likewise.
* testsuite/ld-mips-elf/branch-absolute-n32.d: Likewise.
* testsuite/ld-mips-elf/branch-absolute-n64.d: Likewise.
* testsuite/ld-mips-elf/branch-absolute.d: Likewise.
* testsuite/ld-mips-elf/dyn-sec64.d: Likewise.
* testsuite/ld-mips-elf/eh-frame1-n32.d: Likewise.
* testsuite/ld-mips-elf/eh-frame1-n64.d: Likewise.
* testsuite/ld-mips-elf/eh-frame2-n32.d: Likewise.
* testsuite/ld-mips-elf/eh-frame2-n64.d: Likewise.
* testsuite/ld-mips-elf/elf-rel-got-n32-embed.d: Likewise.
* testsuite/ld-mips-elf/elf-rel-got-n32.d: Likewise.
* testsuite/ld-mips-elf/elf-rel-got-n64-embed.d: Likewise.
* testsuite/ld-mips-elf/elf-rel-got-n64-irix.d: Likewise.
* testsuite/ld-mips-elf/elf-rel-got-n64.d: Likewise.
* testsuite/ld-mips-elf/elf-rel-xgot-n32-embed.d: Likewise.
* testsuite/ld-mips-elf/elf-rel-xgot-n32.d: Likewise.
* testsuite/ld-mips-elf/elf-rel-xgot-n64-embed.d: Likewise.
* testsuite/ld-mips-elf/elf-rel-xgot-n64-irix.d: Likewise.
* testsuite/ld-mips-elf/elf-rel-xgot-n64.d: Likewise.
* testsuite/ld-mips-elf/emit-relocs-1.d: Likewise.
* testsuite/ld-mips-elf/got-dump-2.d: Likewise.
* testsuite/ld-mips-elf/got-page-2.d: Likewise.
* testsuite/ld-mips-elf/jal-global-overflow-0.d: Likewise.
* testsuite/ld-mips-elf/jal-global-overflow-1.d: Likewise.
* testsuite/ld-mips-elf/jal-local-overflow-0.d: Likewise.
* testsuite/ld-mips-elf/jal-local-overflow-1.d: Likewise.
* testsuite/ld-mips-elf/jalbal.d: Likewise.
* testsuite/ld-mips-elf/jalx-addend-n32.d: Likewise.
* testsuite/ld-mips-elf/jalx-addend-n64.d: Likewise.
* testsuite/ld-mips-elf/jalx-addend.d: Likewise.
* testsuite/ld-mips-elf/jalx-local-n32.d: Likewise.
* testsuite/ld-mips-elf/jalx-local-n64.d: Likewise.
* testsuite/ld-mips-elf/jalx-local.d: Likewise.
* testsuite/ld-mips-elf/jr-to-b-1.d: Likewise.
* testsuite/ld-mips-elf/jr-to-b-2.d: Likewise.
* testsuite/ld-mips-elf/lsi-4010-isa.d: Likewise.
* testsuite/ld-mips-elf/micromips-branch-absolute-addend-n32.d:
Likewise.
* testsuite/ld-mips-elf/micromips-branch-absolute-addend-n64.d:
Likewise.
* testsuite/ld-mips-elf/micromips-branch-absolute-addend.d:
Likewise.
* testsuite/ld-mips-elf/micromips-branch-absolute-n32.d:
Likewise.
* testsuite/ld-mips-elf/micromips-branch-absolute-n64.d:
Likewise.
* testsuite/ld-mips-elf/micromips-branch-absolute.d: Likewise.
* testsuite/ld-mips-elf/mips16-branch-2.d: Likewise.
* testsuite/ld-mips-elf/mips16-branch-3.d: Likewise.
* testsuite/ld-mips-elf/mips16-branch-absolute-1.d: Likewise.
* testsuite/ld-mips-elf/mips16-branch-absolute-2.d: Likewise.
* testsuite/ld-mips-elf/mips16-branch-absolute-addend-1.d:
Likewise.
* testsuite/ld-mips-elf/mips16-branch-absolute-addend-n32-1.d:
Likewise.
* testsuite/ld-mips-elf/mips16-branch-absolute-addend-n32.d:
Likewise.
* testsuite/ld-mips-elf/mips16-branch-absolute-addend-n64-1.d:
Likewise.
* testsuite/ld-mips-elf/mips16-branch-absolute-addend-n64.d:
Likewise.
* testsuite/ld-mips-elf/mips16-branch-absolute-addend.d:
Likewise.
* testsuite/ld-mips-elf/mips16-branch-absolute-n32-1.d:
Likewise.
* testsuite/ld-mips-elf/mips16-branch-absolute-n32-2.d:
Likewise.
* testsuite/ld-mips-elf/mips16-branch-absolute-n32.d: Likewise.
* testsuite/ld-mips-elf/mips16-branch-absolute-n64-1.d:
Likewise.
* testsuite/ld-mips-elf/mips16-branch-absolute-n64-2.d:
Likewise.
* testsuite/ld-mips-elf/mips16-branch-absolute-n64.d: Likewise.
* testsuite/ld-mips-elf/mips16-branch-absolute.d: Likewise.
* testsuite/ld-mips-elf/mips16-branch-addend-2.d: Likewise.
* testsuite/ld-mips-elf/mips16-branch-addend-3.d: Likewise.
* testsuite/ld-mips-elf/mips16-hilo-n32.d: Likewise.
* testsuite/ld-mips-elf/mips16-pcrel-0.d: Likewise.
* testsuite/ld-mips-elf/mips16-pcrel-1.d: Likewise.
* testsuite/ld-mips-elf/mips16-pcrel-addend-2.d: Likewise.
* testsuite/ld-mips-elf/mips16-pcrel-addend-6.d: Likewise.
* testsuite/ld-mips-elf/mips16-pcrel-n32-0.d: Likewise.
* testsuite/ld-mips-elf/mips16-pcrel-n32-1.d: Likewise.
* testsuite/ld-mips-elf/mips16-pcrel-n64-sym32-0.d: Likewise.
* testsuite/ld-mips-elf/mips16-pcrel-n64-sym32-1.d: Likewise.
* testsuite/ld-mips-elf/mips16e2-pcrel-0.d: Likewise.
* testsuite/ld-mips-elf/mips16e2-pcrel-1.d: Likewise.
* testsuite/ld-mips-elf/mips16e2-pcrel-addend-2.d: Likewise.
* testsuite/ld-mips-elf/mips16e2-pcrel-addend-6.d: Likewise.
* testsuite/ld-mips-elf/mips16e2-pcrel-n32-0.d: Likewise.
* testsuite/ld-mips-elf/mips16e2-pcrel-n32-1.d: Likewise.
* testsuite/ld-mips-elf/mips16e2-pcrel-n64-sym32-0.d: Likewise.
* testsuite/ld-mips-elf/mips16e2-pcrel-n64-sym32-1.d: Likewise.
* testsuite/ld-mips-elf/multi-got-1.d: Likewise.
* testsuite/ld-mips-elf/multi-got-hidden-1.d: Likewise.
* testsuite/ld-mips-elf/multi-got-hidden-2.d: Likewise.
* testsuite/ld-mips-elf/multi-got-no-shared.d: Likewise.
* testsuite/ld-mips-elf/no-shared-1-n32.d: Likewise.
* testsuite/ld-mips-elf/no-shared-1-n64.d: Likewise.
* testsuite/ld-mips-elf/no-shared-1-o32.d: Likewise.
* testsuite/ld-mips-elf/pic-and-nonpic-2.d: Likewise.
* testsuite/ld-mips-elf/pic-and-nonpic-3-error.d: Likewise.
* testsuite/ld-mips-elf/pic-and-nonpic-4-error.d: Likewise.
* testsuite/ld-mips-elf/pie-n32.d: Likewise.
* testsuite/ld-mips-elf/pie-n64.d: Likewise.
* testsuite/ld-mips-elf/pie-o32.d: Likewise.
* testsuite/ld-mips-elf/rel32-n32.d: Likewise.
* testsuite/ld-mips-elf/rel32-o32.d: Likewise.
* testsuite/ld-mips-elf/rel64.d: Likewise.
* testsuite/ld-mips-elf/relax-jalr-n32.d: Likewise.
* testsuite/ld-mips-elf/reloc-1-n32.d: Likewise.
* testsuite/ld-mips-elf/reloc-1-n64.d: Likewise.
* testsuite/ld-mips-elf/reloc-2.d: Likewise.
* testsuite/ld-mips-elf/reloc-3-n32.d: Likewise.
* testsuite/ld-mips-elf/reloc-local-overflow.d: Likewise.
* testsuite/ld-mips-elf/textrel-1.d: Likewise.
* testsuite/ld-mips-elf/unaligned-branch-2.d: Likewise.
* testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: Likewise.
* testsuite/ld-mips-elf/unaligned-branch-ignore-micromips.d:
Likewise.
* testsuite/ld-mips-elf/unaligned-branch-ignore-mips16.d:
Likewise.
* testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1.d:
Likewise.
* testsuite/ld-mips-elf/unaligned-branch-micromips.d: Likewise.
* testsuite/ld-mips-elf/unaligned-branch-mips16.d: Likewise.
* testsuite/ld-mips-elf/unaligned-branch-r6-1.d: Likewise.
* testsuite/ld-mips-elf/unaligned-branch-r6-2.d: Likewise.
* testsuite/ld-mips-elf/unaligned-branch.d: Likewise.
* testsuite/ld-mips-elf/unaligned-jalx-addend-0.d: Likewise.
* testsuite/ld-mips-elf/unaligned-jalx-addend-1.d: Likewise.
* testsuite/ld-mips-elf/unaligned-jalx-addend-2.d: Likewise.
* testsuite/ld-mips-elf/unaligned-jalx-addend-3.d: Likewise.
* testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-0.d:
Likewise.
* testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d:
Likewise.
* testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-0.d:
Likewise.
* testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d:
Likewise.
* testsuite/ld-mips-elf/unaligned-jump-micromips.d: Likewise.
* testsuite/ld-mips-elf/unaligned-jump-mips16.d: Likewise.
* testsuite/ld-mips-elf/unaligned-jump.d: Likewise.
* testsuite/ld-mips-elf/unaligned-ldpc-0.d: Likewise.
* testsuite/ld-mips-elf/unaligned-ldpc-1.d: Likewise.
* testsuite/ld-mips-elf/unaligned-lwpc-0.d: Likewise.
* testsuite/ld-mips-elf/unaligned-lwpc-1.d: Likewise.

162 files changed:
ld/ChangeLog
ld/testsuite/ld-mips-elf/attr-gnu-4-0-n32-ph.d
ld/testsuite/ld-mips-elf/attr-gnu-4-0-n64-ph.d
ld/testsuite/ld-mips-elf/attr-gnu-4-1-n32-ph.d
ld/testsuite/ld-mips-elf/attr-gnu-4-1-n64-ph.d
ld/testsuite/ld-mips-elf/attr-gnu-4-2-n32-ph.d
ld/testsuite/ld-mips-elf/attr-gnu-4-2-n64-ph.d
ld/testsuite/ld-mips-elf/attr-gnu-4-3-n32-ph.d
ld/testsuite/ld-mips-elf/attr-gnu-4-3-n64-ph.d
ld/testsuite/ld-mips-elf/bal-jalx-addend-micromips-n32.d
ld/testsuite/ld-mips-elf/bal-jalx-addend-micromips-n64.d
ld/testsuite/ld-mips-elf/bal-jalx-addend-micromips.d
ld/testsuite/ld-mips-elf/bal-jalx-addend-n32.d
ld/testsuite/ld-mips-elf/bal-jalx-addend-n64.d
ld/testsuite/ld-mips-elf/bal-jalx-addend.d
ld/testsuite/ld-mips-elf/bal-jalx-local-micromips-n32.d
ld/testsuite/ld-mips-elf/bal-jalx-local-micromips-n64.d
ld/testsuite/ld-mips-elf/bal-jalx-local-micromips.d
ld/testsuite/ld-mips-elf/bal-jalx-local-n32.d
ld/testsuite/ld-mips-elf/bal-jalx-local-n64.d
ld/testsuite/ld-mips-elf/bal-jalx-local.d
ld/testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n32.d
ld/testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n64.d
ld/testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips.d
ld/testsuite/ld-mips-elf/bal-jalx-pic-ignore-n32.d
ld/testsuite/ld-mips-elf/bal-jalx-pic-ignore-n64.d
ld/testsuite/ld-mips-elf/bal-jalx-pic-ignore.d
ld/testsuite/ld-mips-elf/bal-jalx-pic-micromips-n32.d
ld/testsuite/ld-mips-elf/bal-jalx-pic-micromips-n64.d
ld/testsuite/ld-mips-elf/bal-jalx-pic-micromips.d
ld/testsuite/ld-mips-elf/bal-jalx-pic-n32.d
ld/testsuite/ld-mips-elf/bal-jalx-pic-n64.d
ld/testsuite/ld-mips-elf/bal-jalx-pic.d
ld/testsuite/ld-mips-elf/branch-absolute-addend-n32.d
ld/testsuite/ld-mips-elf/branch-absolute-addend-n64.d
ld/testsuite/ld-mips-elf/branch-absolute-addend.d
ld/testsuite/ld-mips-elf/branch-absolute-n32.d
ld/testsuite/ld-mips-elf/branch-absolute-n64.d
ld/testsuite/ld-mips-elf/branch-absolute.d
ld/testsuite/ld-mips-elf/dyn-sec64.d
ld/testsuite/ld-mips-elf/eh-frame1-n32.d
ld/testsuite/ld-mips-elf/eh-frame1-n64.d
ld/testsuite/ld-mips-elf/eh-frame2-n32.d
ld/testsuite/ld-mips-elf/eh-frame2-n64.d
ld/testsuite/ld-mips-elf/elf-rel-got-n32-embed.d
ld/testsuite/ld-mips-elf/elf-rel-got-n32.d
ld/testsuite/ld-mips-elf/elf-rel-got-n64-embed.d
ld/testsuite/ld-mips-elf/elf-rel-got-n64-irix.d
ld/testsuite/ld-mips-elf/elf-rel-got-n64.d
ld/testsuite/ld-mips-elf/elf-rel-xgot-n32-embed.d
ld/testsuite/ld-mips-elf/elf-rel-xgot-n32.d
ld/testsuite/ld-mips-elf/elf-rel-xgot-n64-embed.d
ld/testsuite/ld-mips-elf/elf-rel-xgot-n64-irix.d
ld/testsuite/ld-mips-elf/elf-rel-xgot-n64.d
ld/testsuite/ld-mips-elf/emit-relocs-1.d
ld/testsuite/ld-mips-elf/got-dump-2.d
ld/testsuite/ld-mips-elf/got-page-2.d
ld/testsuite/ld-mips-elf/jal-global-overflow-0.d
ld/testsuite/ld-mips-elf/jal-global-overflow-1.d
ld/testsuite/ld-mips-elf/jal-local-overflow-0.d
ld/testsuite/ld-mips-elf/jal-local-overflow-1.d
ld/testsuite/ld-mips-elf/jalbal.d
ld/testsuite/ld-mips-elf/jalx-addend-n32.d
ld/testsuite/ld-mips-elf/jalx-addend-n64.d
ld/testsuite/ld-mips-elf/jalx-addend.d
ld/testsuite/ld-mips-elf/jalx-local-n32.d
ld/testsuite/ld-mips-elf/jalx-local-n64.d
ld/testsuite/ld-mips-elf/jalx-local.d
ld/testsuite/ld-mips-elf/jr-to-b-1.d
ld/testsuite/ld-mips-elf/jr-to-b-2.d
ld/testsuite/ld-mips-elf/lsi-4010-isa.d
ld/testsuite/ld-mips-elf/micromips-branch-absolute-addend-n32.d
ld/testsuite/ld-mips-elf/micromips-branch-absolute-addend-n64.d
ld/testsuite/ld-mips-elf/micromips-branch-absolute-addend.d
ld/testsuite/ld-mips-elf/micromips-branch-absolute-n32.d
ld/testsuite/ld-mips-elf/micromips-branch-absolute-n64.d
ld/testsuite/ld-mips-elf/micromips-branch-absolute.d
ld/testsuite/ld-mips-elf/mips-elf.exp
ld/testsuite/ld-mips-elf/mips16-branch-2.d
ld/testsuite/ld-mips-elf/mips16-branch-3.d
ld/testsuite/ld-mips-elf/mips16-branch-absolute-1.d
ld/testsuite/ld-mips-elf/mips16-branch-absolute-2.d
ld/testsuite/ld-mips-elf/mips16-branch-absolute-addend-1.d
ld/testsuite/ld-mips-elf/mips16-branch-absolute-addend-n32-1.d
ld/testsuite/ld-mips-elf/mips16-branch-absolute-addend-n32.d
ld/testsuite/ld-mips-elf/mips16-branch-absolute-addend-n64-1.d
ld/testsuite/ld-mips-elf/mips16-branch-absolute-addend-n64.d
ld/testsuite/ld-mips-elf/mips16-branch-absolute-addend.d
ld/testsuite/ld-mips-elf/mips16-branch-absolute-n32-1.d
ld/testsuite/ld-mips-elf/mips16-branch-absolute-n32-2.d
ld/testsuite/ld-mips-elf/mips16-branch-absolute-n32.d
ld/testsuite/ld-mips-elf/mips16-branch-absolute-n64-1.d
ld/testsuite/ld-mips-elf/mips16-branch-absolute-n64-2.d
ld/testsuite/ld-mips-elf/mips16-branch-absolute-n64.d
ld/testsuite/ld-mips-elf/mips16-branch-absolute.d
ld/testsuite/ld-mips-elf/mips16-branch-addend-2.d
ld/testsuite/ld-mips-elf/mips16-branch-addend-3.d
ld/testsuite/ld-mips-elf/mips16-hilo-n32.d
ld/testsuite/ld-mips-elf/mips16-pcrel-0.d
ld/testsuite/ld-mips-elf/mips16-pcrel-1.d
ld/testsuite/ld-mips-elf/mips16-pcrel-addend-2.d
ld/testsuite/ld-mips-elf/mips16-pcrel-addend-6.d
ld/testsuite/ld-mips-elf/mips16-pcrel-n32-0.d
ld/testsuite/ld-mips-elf/mips16-pcrel-n32-1.d
ld/testsuite/ld-mips-elf/mips16-pcrel-n64-sym32-0.d
ld/testsuite/ld-mips-elf/mips16-pcrel-n64-sym32-1.d
ld/testsuite/ld-mips-elf/mips16e2-pcrel-0.d
ld/testsuite/ld-mips-elf/mips16e2-pcrel-1.d
ld/testsuite/ld-mips-elf/mips16e2-pcrel-addend-2.d
ld/testsuite/ld-mips-elf/mips16e2-pcrel-addend-6.d
ld/testsuite/ld-mips-elf/mips16e2-pcrel-n32-0.d
ld/testsuite/ld-mips-elf/mips16e2-pcrel-n32-1.d
ld/testsuite/ld-mips-elf/mips16e2-pcrel-n64-sym32-0.d
ld/testsuite/ld-mips-elf/mips16e2-pcrel-n64-sym32-1.d
ld/testsuite/ld-mips-elf/multi-got-1.d
ld/testsuite/ld-mips-elf/multi-got-hidden-1.d
ld/testsuite/ld-mips-elf/multi-got-hidden-2.d
ld/testsuite/ld-mips-elf/multi-got-no-shared.d
ld/testsuite/ld-mips-elf/no-shared-1-n32.d
ld/testsuite/ld-mips-elf/no-shared-1-n64.d
ld/testsuite/ld-mips-elf/no-shared-1-o32.d
ld/testsuite/ld-mips-elf/pic-and-nonpic-2.d
ld/testsuite/ld-mips-elf/pic-and-nonpic-3-error.d
ld/testsuite/ld-mips-elf/pic-and-nonpic-4-error.d
ld/testsuite/ld-mips-elf/pie-n32.d
ld/testsuite/ld-mips-elf/pie-n64.d
ld/testsuite/ld-mips-elf/pie-o32.d
ld/testsuite/ld-mips-elf/rel32-n32.d
ld/testsuite/ld-mips-elf/rel32-o32.d
ld/testsuite/ld-mips-elf/rel64.d
ld/testsuite/ld-mips-elf/relax-jalr-n32.d
ld/testsuite/ld-mips-elf/reloc-1-n32.d
ld/testsuite/ld-mips-elf/reloc-1-n64.d
ld/testsuite/ld-mips-elf/reloc-2.d
ld/testsuite/ld-mips-elf/reloc-3-n32.d
ld/testsuite/ld-mips-elf/reloc-local-overflow.d
ld/testsuite/ld-mips-elf/textrel-1.d
ld/testsuite/ld-mips-elf/unaligned-branch-2.d
ld/testsuite/ld-mips-elf/unaligned-branch-ignore-2.d
ld/testsuite/ld-mips-elf/unaligned-branch-ignore-micromips.d
ld/testsuite/ld-mips-elf/unaligned-branch-ignore-mips16.d
ld/testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1.d
ld/testsuite/ld-mips-elf/unaligned-branch-micromips.d
ld/testsuite/ld-mips-elf/unaligned-branch-mips16.d
ld/testsuite/ld-mips-elf/unaligned-branch-r6-1.d
ld/testsuite/ld-mips-elf/unaligned-branch-r6-2.d
ld/testsuite/ld-mips-elf/unaligned-branch.d
ld/testsuite/ld-mips-elf/unaligned-jalx-addend-0.d
ld/testsuite/ld-mips-elf/unaligned-jalx-addend-1.d
ld/testsuite/ld-mips-elf/unaligned-jalx-addend-2.d
ld/testsuite/ld-mips-elf/unaligned-jalx-addend-3.d
ld/testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-0.d
ld/testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d
ld/testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-0.d
ld/testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d
ld/testsuite/ld-mips-elf/unaligned-jump-micromips.d
ld/testsuite/ld-mips-elf/unaligned-jump-mips16.d
ld/testsuite/ld-mips-elf/unaligned-jump.d
ld/testsuite/ld-mips-elf/unaligned-ldpc-0.d
ld/testsuite/ld-mips-elf/unaligned-ldpc-1.d
ld/testsuite/ld-mips-elf/unaligned-lwpc-0.d
ld/testsuite/ld-mips-elf/unaligned-lwpc-1.d

index 042c35813afec0f88e6f1bfe321aed9a06a2c0ea..f5af858e55ad5f35515fbb29acac8948406d3ac0 100644 (file)
@@ -1,3 +1,216 @@
+2018-07-12  Maciej W. Rozycki  <macro@mips.com>
+
+       * testsuite/ld-mips-elf/mips-elf.exp (run_dump_test_abi)
+       (run_dump_test_o32, run_dump_test_n32, run_dump_test_n64)
+       (run_dump_test_eabi): New procedures.
+       (has_newabi, has_elf32): Remove variables.
+       (has_abi): New associative array variable.
+       (abi_asflags, abi_ldflags): Update settings across targets.
+       (irixemul): New variable.
+       Replace `run_dump_test' calls where applicable throughout with
+       `run_dump_test_o32', `run_dump_test_n32', `run_dump_test_n64'
+       and `run_dump_test_eabi' as appropriate.  Remove explicit
+       passing of `abi_asflags' and `abi_ldflags'.  Use `noarch' for
+       tests that require their own architecture setting.  Force the
+       big endianness for tests that require it.  Select the endianness
+       required for `objdump invocation with the `reloc-2' test.
+       Conditionalize tests run via `run_ld_link_tests' on the ABI
+       required and use the ABI list from the `has_abi' array where
+       appropriate.
+       * testsuite/ld-mips-elf/attr-gnu-4-0-n32-ph.d: Remove ABI and
+       endianness selection options from `ld' and `source' tags.  Relax
+       output format matching.
+       * testsuite/ld-mips-elf/attr-gnu-4-0-n64-ph.d: Likewise.
+       * testsuite/ld-mips-elf/attr-gnu-4-1-n32-ph.d: Likewise.
+       * testsuite/ld-mips-elf/attr-gnu-4-1-n64-ph.d: Likewise.
+       * testsuite/ld-mips-elf/attr-gnu-4-2-n32-ph.d: Likewise.
+       * testsuite/ld-mips-elf/attr-gnu-4-2-n64-ph.d: Likewise.
+       * testsuite/ld-mips-elf/attr-gnu-4-3-n32-ph.d: Likewise.
+       * testsuite/ld-mips-elf/attr-gnu-4-3-n64-ph.d: Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-addend-micromips-n32.d: Remove
+       ABI and endianness selection options from `as', `ld', `source'
+       tags, and also the `-march=from-abi' option.  Remove the `as'
+       tag where it would become empty.
+       * testsuite/ld-mips-elf/bal-jalx-addend-micromips-n64.d:
+       Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-addend-micromips.d: Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-addend-n32.d: Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-addend-n64.d: Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-addend.d: Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-local-micromips-n32.d:
+       Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-local-micromips-n64.d:
+       Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-local-micromips.d: Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-local-n32.d: Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-local-n64.d: Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-local.d: Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n32.d:
+       Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips-n64.d:
+       Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-pic-ignore-micromips.d:
+       Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n32.d: Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n64.d: Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-pic-ignore.d: Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n32.d: Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-pic-micromips-n64.d: Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-pic-micromips.d: Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-pic-n32.d: Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-pic-n64.d: Likewise.
+       * testsuite/ld-mips-elf/bal-jalx-pic.d: Likewise.
+       * testsuite/ld-mips-elf/branch-absolute-addend-n32.d: Likewise.
+       * testsuite/ld-mips-elf/branch-absolute-addend-n64.d: Likewise.
+       * testsuite/ld-mips-elf/branch-absolute-addend.d: Likewise.
+       * testsuite/ld-mips-elf/branch-absolute-n32.d: Likewise.
+       * testsuite/ld-mips-elf/branch-absolute-n64.d: Likewise.
+       * testsuite/ld-mips-elf/branch-absolute.d: Likewise.
+       * testsuite/ld-mips-elf/dyn-sec64.d: Likewise.
+       * testsuite/ld-mips-elf/eh-frame1-n32.d: Likewise.
+       * testsuite/ld-mips-elf/eh-frame1-n64.d: Likewise.
+       * testsuite/ld-mips-elf/eh-frame2-n32.d: Likewise.
+       * testsuite/ld-mips-elf/eh-frame2-n64.d: Likewise.
+       * testsuite/ld-mips-elf/elf-rel-got-n32-embed.d: Likewise.
+       * testsuite/ld-mips-elf/elf-rel-got-n32.d: Likewise.
+       * testsuite/ld-mips-elf/elf-rel-got-n64-embed.d: Likewise.
+       * testsuite/ld-mips-elf/elf-rel-got-n64-irix.d: Likewise.
+       * testsuite/ld-mips-elf/elf-rel-got-n64.d: Likewise.
+       * testsuite/ld-mips-elf/elf-rel-xgot-n32-embed.d: Likewise.
+       * testsuite/ld-mips-elf/elf-rel-xgot-n32.d: Likewise.
+       * testsuite/ld-mips-elf/elf-rel-xgot-n64-embed.d: Likewise.
+       * testsuite/ld-mips-elf/elf-rel-xgot-n64-irix.d: Likewise.
+       * testsuite/ld-mips-elf/elf-rel-xgot-n64.d: Likewise.
+       * testsuite/ld-mips-elf/emit-relocs-1.d: Likewise.
+       * testsuite/ld-mips-elf/got-dump-2.d: Likewise.
+       * testsuite/ld-mips-elf/got-page-2.d: Likewise.
+       * testsuite/ld-mips-elf/jal-global-overflow-0.d: Likewise.
+       * testsuite/ld-mips-elf/jal-global-overflow-1.d: Likewise.
+       * testsuite/ld-mips-elf/jal-local-overflow-0.d: Likewise.
+       * testsuite/ld-mips-elf/jal-local-overflow-1.d: Likewise.
+       * testsuite/ld-mips-elf/jalbal.d: Likewise.
+       * testsuite/ld-mips-elf/jalx-addend-n32.d: Likewise.
+       * testsuite/ld-mips-elf/jalx-addend-n64.d: Likewise.
+       * testsuite/ld-mips-elf/jalx-addend.d: Likewise.
+       * testsuite/ld-mips-elf/jalx-local-n32.d: Likewise.
+       * testsuite/ld-mips-elf/jalx-local-n64.d: Likewise.
+       * testsuite/ld-mips-elf/jalx-local.d: Likewise.
+       * testsuite/ld-mips-elf/jr-to-b-1.d: Likewise.
+       * testsuite/ld-mips-elf/jr-to-b-2.d: Likewise.
+       * testsuite/ld-mips-elf/lsi-4010-isa.d: Likewise.
+       * testsuite/ld-mips-elf/micromips-branch-absolute-addend-n32.d:
+       Likewise.
+       * testsuite/ld-mips-elf/micromips-branch-absolute-addend-n64.d:
+       Likewise.
+       * testsuite/ld-mips-elf/micromips-branch-absolute-addend.d:
+       Likewise.
+       * testsuite/ld-mips-elf/micromips-branch-absolute-n32.d:
+       Likewise.
+       * testsuite/ld-mips-elf/micromips-branch-absolute-n64.d:
+       Likewise.
+       * testsuite/ld-mips-elf/micromips-branch-absolute.d: Likewise.
+       * testsuite/ld-mips-elf/mips16-branch-2.d: Likewise.
+       * testsuite/ld-mips-elf/mips16-branch-3.d: Likewise.
+       * testsuite/ld-mips-elf/mips16-branch-absolute-1.d: Likewise.
+       * testsuite/ld-mips-elf/mips16-branch-absolute-2.d: Likewise.
+       * testsuite/ld-mips-elf/mips16-branch-absolute-addend-1.d:
+       Likewise.
+       * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n32-1.d:
+       Likewise.
+       * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n32.d:
+       Likewise.
+       * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n64-1.d:
+       Likewise.
+       * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n64.d:
+       Likewise.
+       * testsuite/ld-mips-elf/mips16-branch-absolute-addend.d:
+       Likewise.
+       * testsuite/ld-mips-elf/mips16-branch-absolute-n32-1.d:
+       Likewise.
+       * testsuite/ld-mips-elf/mips16-branch-absolute-n32-2.d:
+       Likewise.
+       * testsuite/ld-mips-elf/mips16-branch-absolute-n32.d: Likewise.
+       * testsuite/ld-mips-elf/mips16-branch-absolute-n64-1.d:
+       Likewise.
+       * testsuite/ld-mips-elf/mips16-branch-absolute-n64-2.d:
+       Likewise.
+       * testsuite/ld-mips-elf/mips16-branch-absolute-n64.d: Likewise.
+       * testsuite/ld-mips-elf/mips16-branch-absolute.d: Likewise.
+       * testsuite/ld-mips-elf/mips16-branch-addend-2.d: Likewise.
+       * testsuite/ld-mips-elf/mips16-branch-addend-3.d: Likewise.
+       * testsuite/ld-mips-elf/mips16-hilo-n32.d: Likewise.
+       * testsuite/ld-mips-elf/mips16-pcrel-0.d: Likewise.
+       * testsuite/ld-mips-elf/mips16-pcrel-1.d: Likewise.
+       * testsuite/ld-mips-elf/mips16-pcrel-addend-2.d: Likewise.
+       * testsuite/ld-mips-elf/mips16-pcrel-addend-6.d: Likewise.
+       * testsuite/ld-mips-elf/mips16-pcrel-n32-0.d: Likewise.
+       * testsuite/ld-mips-elf/mips16-pcrel-n32-1.d: Likewise.
+       * testsuite/ld-mips-elf/mips16-pcrel-n64-sym32-0.d: Likewise.
+       * testsuite/ld-mips-elf/mips16-pcrel-n64-sym32-1.d: Likewise.
+       * testsuite/ld-mips-elf/mips16e2-pcrel-0.d: Likewise.
+       * testsuite/ld-mips-elf/mips16e2-pcrel-1.d: Likewise.
+       * testsuite/ld-mips-elf/mips16e2-pcrel-addend-2.d: Likewise.
+       * testsuite/ld-mips-elf/mips16e2-pcrel-addend-6.d: Likewise.
+       * testsuite/ld-mips-elf/mips16e2-pcrel-n32-0.d: Likewise.
+       * testsuite/ld-mips-elf/mips16e2-pcrel-n32-1.d: Likewise.
+       * testsuite/ld-mips-elf/mips16e2-pcrel-n64-sym32-0.d: Likewise.
+       * testsuite/ld-mips-elf/mips16e2-pcrel-n64-sym32-1.d: Likewise.
+       * testsuite/ld-mips-elf/multi-got-1.d: Likewise.
+       * testsuite/ld-mips-elf/multi-got-hidden-1.d: Likewise.
+       * testsuite/ld-mips-elf/multi-got-hidden-2.d: Likewise.
+       * testsuite/ld-mips-elf/multi-got-no-shared.d: Likewise.
+       * testsuite/ld-mips-elf/no-shared-1-n32.d: Likewise.
+       * testsuite/ld-mips-elf/no-shared-1-n64.d: Likewise.
+       * testsuite/ld-mips-elf/no-shared-1-o32.d: Likewise.
+       * testsuite/ld-mips-elf/pic-and-nonpic-2.d: Likewise.
+       * testsuite/ld-mips-elf/pic-and-nonpic-3-error.d: Likewise.
+       * testsuite/ld-mips-elf/pic-and-nonpic-4-error.d: Likewise.
+       * testsuite/ld-mips-elf/pie-n32.d: Likewise.
+       * testsuite/ld-mips-elf/pie-n64.d: Likewise.
+       * testsuite/ld-mips-elf/pie-o32.d: Likewise.
+       * testsuite/ld-mips-elf/rel32-n32.d: Likewise.
+       * testsuite/ld-mips-elf/rel32-o32.d: Likewise.
+       * testsuite/ld-mips-elf/rel64.d: Likewise.
+       * testsuite/ld-mips-elf/relax-jalr-n32.d: Likewise.
+       * testsuite/ld-mips-elf/reloc-1-n32.d: Likewise.
+       * testsuite/ld-mips-elf/reloc-1-n64.d: Likewise.
+       * testsuite/ld-mips-elf/reloc-2.d: Likewise.
+       * testsuite/ld-mips-elf/reloc-3-n32.d: Likewise.
+       * testsuite/ld-mips-elf/reloc-local-overflow.d: Likewise.
+       * testsuite/ld-mips-elf/textrel-1.d: Likewise.
+       * testsuite/ld-mips-elf/unaligned-branch-2.d: Likewise.
+       * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: Likewise.
+       * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips.d:
+       Likewise.
+       * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16.d:
+       Likewise.
+       * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1.d:
+       Likewise.
+       * testsuite/ld-mips-elf/unaligned-branch-micromips.d: Likewise.
+       * testsuite/ld-mips-elf/unaligned-branch-mips16.d: Likewise.
+       * testsuite/ld-mips-elf/unaligned-branch-r6-1.d: Likewise.
+       * testsuite/ld-mips-elf/unaligned-branch-r6-2.d: Likewise.
+       * testsuite/ld-mips-elf/unaligned-branch.d: Likewise.
+       * testsuite/ld-mips-elf/unaligned-jalx-addend-0.d: Likewise.
+       * testsuite/ld-mips-elf/unaligned-jalx-addend-1.d: Likewise.
+       * testsuite/ld-mips-elf/unaligned-jalx-addend-2.d: Likewise.
+       * testsuite/ld-mips-elf/unaligned-jalx-addend-3.d: Likewise.
+       * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-0.d:
+       Likewise.
+       * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d:
+       Likewise.
+       * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-0.d:
+       Likewise.
+       * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d:
+       Likewise.
+       * testsuite/ld-mips-elf/unaligned-jump-micromips.d: Likewise.
+       * testsuite/ld-mips-elf/unaligned-jump-mips16.d: Likewise.
+       * testsuite/ld-mips-elf/unaligned-jump.d: Likewise.
+       * testsuite/ld-mips-elf/unaligned-ldpc-0.d: Likewise.
+       * testsuite/ld-mips-elf/unaligned-ldpc-1.d: Likewise.
+       * testsuite/ld-mips-elf/unaligned-lwpc-0.d: Likewise.
+       * testsuite/ld-mips-elf/unaligned-lwpc-1.d: Likewise.
+
 2018-07-12  Maciej W. Rozycki  <macro@mips.com>
 
        * testsuite/ld-mips-elf/mips-elf.exp: Limit reloc 6 tests to
index 0fb6988f5895e53f9401a557f26cde237e16606c..9451ad7ae2b705ffc4e2db53d9238e4606a4ed1f 100644 (file)
@@ -1,8 +1,8 @@
-#source: attr-gnu-4-0.s -mips3 -n32 -EB
-#ld: -melf32btsmipn32 -e 0
+#source: attr-gnu-4-0.s -mips3
+#ld: -e 0
 #objdump: -p
 
-[^:]*:     file format elf32-ntradbigmips
+[^:]*:     file format elf32-n.*mips.*
 
 Program Header:
 0x70000003 off    0x000000.. vaddr 0x100000.. paddr 0x100000.. align 2\*\*3
index f2760252ef8ffd95ca7da18784f8c0f96a54d287..69770b76a30407645618b7691a5e928f6cb12ae6 100644 (file)
@@ -1,8 +1,8 @@
-#source: attr-gnu-4-0.s -mips3 -64 -EB
-#ld: -melf64btsmip -e 0
+#source: attr-gnu-4-0.s -mips3
+#ld: -e 0
 #objdump: -p
 
-[^:]*:     file format elf64-tradbigmips
+[^:]*:     file format elf64-.*mips.*
 
 Program Header:
 0x70000003 off    0x00000000000000b0 vaddr 0x00000001200000b0 paddr 0x00000001200000b0 align 2\*\*3
index d83c8597be60d7fa1aa97d64b7c6563a56fe2745..bd250e087b5b6ae3ce2816d8711cf52af13dc71e 100644 (file)
@@ -1,8 +1,8 @@
-#source: empty.s -mips3 -n32 -EB
-#ld: -melf32btsmipn32 -e 0
+#source: empty.s -mips3
+#ld: -e 0
 #objdump: -p
 
-[^:]*:     file format elf32-ntradbigmips
+[^:]*:     file format elf32-n.*mips.*
 
 Program Header:
 0x70000003 off    0x000000.. vaddr 0x100000.. paddr 0x100000.. align 2\*\*3
index 157f3e6585c633d9eab2f8a058d9d51bd24d8fa4..9d5acaf0436c89394599c727e92916eff343957d 100644 (file)
@@ -1,8 +1,8 @@
-#source: empty.s -mips3 -64 -EB
-#ld: -melf64btsmip -e 0
+#source: empty.s -mips3
+#ld: -e 0
 #objdump: -p
 
-[^:]*:     file format elf64-tradbigmips
+[^:]*:     file format elf64-.*mips.*
 
 Program Header:
 0x70000003 off    0x00000000000000b0 vaddr 0x00000001200000b0 paddr 0x00000001200000b0 align 2\*\*3
index 5a048048f244f6d906c929385ece172d8a5b8089..96428ae66c0a8654b2f80d6e08bc8513c5d299c4 100644 (file)
@@ -1,8 +1,8 @@
-#source: empty.s -mips3 -n32 -msingle-float -EB
-#ld: -melf32btsmipn32 -e 0
+#source: empty.s -mips3 -msingle-float
+#ld: -e 0
 #objdump: -p
 
-[^:]*:     file format elf32-ntradbigmips
+[^:]*:     file format elf32-n.*mips.*
 
 Program Header:
 0x70000003 off    0x000000.. vaddr 0x100000.. paddr 0x100000.. align 2\*\*3
index 88b4ff9e809381c46a74a04a1dabc70da224b273..a5404d9ca917eac0053a5306955db14438b58f45 100644 (file)
@@ -1,8 +1,8 @@
-#source: empty.s -mips3 -64 -msingle-float -EB
-#ld: -melf64btsmip -e 0
+#source: empty.s -mips3 -msingle-float
+#ld: -e 0
 #objdump: -p
 
-[^:]*:     file format elf64-tradbigmips
+[^:]*:     file format elf64-.*mips.*
 
 Program Header:
 0x70000003 off    0x00000000000000b0 vaddr 0x00000001200000b0 paddr 0x00000001200000b0 align 2\*\*3
index 5a048048f244f6d906c929385ece172d8a5b8089..96428ae66c0a8654b2f80d6e08bc8513c5d299c4 100644 (file)
@@ -1,8 +1,8 @@
-#source: empty.s -mips3 -n32 -msingle-float -EB
-#ld: -melf32btsmipn32 -e 0
+#source: empty.s -mips3 -msingle-float
+#ld: -e 0
 #objdump: -p
 
-[^:]*:     file format elf32-ntradbigmips
+[^:]*:     file format elf32-n.*mips.*
 
 Program Header:
 0x70000003 off    0x000000.. vaddr 0x100000.. paddr 0x100000.. align 2\*\*3
index 3731dc4a25fda5fb1d07cf6e6ca76297d3b97ef7..01010aa931f46bb628e132caa813fc7eb4197322 100644 (file)
@@ -1,8 +1,8 @@
-#source: empty.s -mips3 -64 -msoft-float -EB
-#ld: -melf64btsmip -e 0
+#source: empty.s -mips3 -msoft-float
+#ld: -e 0
 #objdump: -p
 
-[^:]*:     file format elf64-tradbigmips
+[^:]*:     file format elf64-.*mips.*
 
 Program Header:
 0x70000003 off    0x00000000000000b0 vaddr 0x00000001200000b0 paddr 0x00000001200000b0 align 2\*\*3
index 9c7aca5b4a3e3994854143163f668dcda0bc733d..a4c08c200d2337419fcdee590ec06c37cca043ea 100644 (file)
@@ -1,6 +1,5 @@
 #name: microMIPS BAL/JALX addend calculation (n32)
 #source: ../../../gas/testsuite/gas/mips/branch-addend-micromips.s
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 #dump: bal-jalx-addend-micromips.d
index e254c658206ed0d2ceed7c6a1148ff54968126b4..b5b83235b927c362f06c4b9b55dcb899fb6fad8f 100644 (file)
@@ -1,6 +1,5 @@
 #name: microMIPS BAL/JALX addend calculation (n64)
 #source: ../../../gas/testsuite/gas/mips/branch-addend-micromips.s
-#as: -EB -64 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 #dump: bal-jalx-addend-micromips.d
index e066f5d8fea66e842ab51e9d1610003dc6f25236..4560ea0540b94e6567e80b6b257ce47775d0dd36 100644 (file)
@@ -1,7 +1,6 @@
 #name: microMIPS BAL/JALX addend calculation
 #source: ../../../gas/testsuite/gas/mips/branch-addend-micromips.s
-#as: -EB -32
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 
 .*: +file format .*mips.*
index a425effe4ff87d53e12225077350895ace5c441a..628758e7a28bc3222323c9f6c3863c7f97845f91 100644 (file)
@@ -1,6 +1,5 @@
 #name: MIPS BAL/JALX addend calculation (n32)
 #source: ../../../gas/testsuite/gas/mips/branch-addend.s
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 #dump: bal-jalx-addend.d
index 0b7a0134677a8b46ed8322d82220402a0dd78099..0e620a012f486fb949351972b0e22b9fd1178e83 100644 (file)
@@ -1,6 +1,5 @@
 #name: MIPS BAL/JALX addend calculation (n64)
 #source: ../../../gas/testsuite/gas/mips/branch-addend.s
-#as: -EB -64 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 #dump: bal-jalx-addend.d
index 91012f9166ef932902dc1b94679cc9493e8ebbe8..c38675a50d43cb216c067ffb04399a5ffbcb4cf3 100644 (file)
@@ -1,7 +1,6 @@
 #name: MIPS BAL/JALX addend calculation
 #source: ../../../gas/testsuite/gas/mips/branch-addend.s
-#as: -EB -32
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 
 .*: +file format .*mips.*
index 16fcb0af43671bd73cd97898dc92485f9f80388f..0fdbe657191a434d73a284b6320e4eee505addc3 100644 (file)
@@ -1,6 +1,5 @@
 #name: microMIPS BAL to JALX conversion for local symbol (n32)
 #source: ../../../gas/testsuite/gas/mips/branch-local-7.s
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 #dump: bal-jalx-local-micromips.d
index d13a9ea024af725b10e3dfe0388dd4fc956a59f2..326dbb6c776f21448a4897013fdb63767c616cbd 100644 (file)
@@ -1,6 +1,5 @@
 #name: microMIPS BAL to JALX conversion for local symbol (n64)
 #source: ../../../gas/testsuite/gas/mips/branch-local-7.s
-#as: -EB -64 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 #dump: bal-jalx-local-micromips.d
index e944d3b6111e75a0b1b1b04280a5a6f524af0d16..29e7d60b05ff6d7502d503e6fc557f73efe0eaa3 100644 (file)
@@ -1,7 +1,6 @@
 #name: microMIPS BAL to JALX conversion for local symbol
 #source: ../../../gas/testsuite/gas/mips/branch-local-7.s
-#as: -EB -32
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 
 .*: +file format .*mips.*
index adaa7984706f1aa6aa435c313613011048901bdc..edd8456370c9e52c608e70d3187603ec7c6a6b67 100644 (file)
@@ -1,6 +1,5 @@
 #name: MIPS BAL to JALX conversion for local symbol (n32)
 #source: ../../../gas/testsuite/gas/mips/branch-local-4.s
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 #dump: bal-jalx-local.d
index e94f290a3f65797140bb3b107b0ca0b72ab0f061..ca71361f83c2e10e8e21f3252cd344670b580677 100644 (file)
@@ -1,6 +1,5 @@
 #name: MIPS BAL to JALX conversion for local symbol (n64)
 #source: ../../../gas/testsuite/gas/mips/branch-local-4.s
-#as: -EB -64 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 #dump: bal-jalx-local.d
index 599cf269099328d5ab32a645b257de8e9196b017..059ea86f698dbb55b9a988df0372bc066d7437ca 100644 (file)
@@ -1,7 +1,6 @@
 #name: MIPS BAL to JALX conversion for local symbol
 #source: ../../../gas/testsuite/gas/mips/branch-local-4.s
-#as: -EB -32
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 
 .*: +file format .*mips.*
index 6ebc06b18e6a8d55925d020cd48fd97d3a9c03ac..c2bcf14753fc4c4113b1fcc267b87e7508af9084 100644 (file)
@@ -1,7 +1,6 @@
 #name: microMIPS BAL/JALX in PIC mode (ignore branch ISA, n32)
 #source: ../../../gas/testsuite/gas/mips/branch-addend-micromips.s
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
+#ld: -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
 #objdump: -dr --prefix-addresses --show-raw-insn
 #target: [check_shared_lib_support]
 #dump: bal-jalx-pic-ignore-micromips.d
index a3b42d19ff1fe1227a3c6e40df354d897b52c7a4..596de0df5cacb9300c3fe62c096a0ec79661cf00 100644 (file)
@@ -1,7 +1,6 @@
 #name: microMIPS BAL/JALX in PIC mode (ignore branch ISA, n64)
 #source: ../../../gas/testsuite/gas/mips/branch-addend-micromips.s
-#as: -EB -64 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
+#ld: -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
 #objdump: -dr --prefix-addresses --show-raw-insn
 #target: [check_shared_lib_support]
 #dump: bal-jalx-pic-ignore-micromips.d
index 06f7c3c6c061863c86b5f94d98ea42aa18a9f768..dcf8bb8a395313ce6da2ce6664d339d01a5349a3 100644 (file)
@@ -1,7 +1,6 @@
 #name: microMIPS BAL/JALX in PIC mode (ignore branch ISA)
 #source: ../../../gas/testsuite/gas/mips/branch-addend-micromips.s
-#as: -EB -32
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
+#ld: -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
 #objdump: -dr --prefix-addresses --show-raw-insn
 #target: [check_shared_lib_support]
 
index 6602a515121ae0d40143bfa887982cd746741278..876d6d5a8b204d1325f73cd0c04c887958c5a060 100644 (file)
@@ -1,7 +1,6 @@
 #name: MIPS BAL/JALX in PIC mode (ignore branch ISA, n32)
 #source: ../../../gas/testsuite/gas/mips/branch-addend.s
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
+#ld: -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
 #objdump: -dr --prefix-addresses --show-raw-insn
 #target: [check_shared_lib_support]
 #dump: bal-jalx-pic-ignore.d
index c6be6932befbdcb26b3d66fc536e621b5054dd00..2b924947cb62bc7cd75d9e47a8b22483085d06b0 100644 (file)
@@ -1,7 +1,6 @@
 #name: MIPS BAL/JALX in PIC mode (ignore branch ISA, n64)
 #source: ../../../gas/testsuite/gas/mips/branch-addend.s
-#as: -EB -64 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
+#ld: -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
 #objdump: -dr --prefix-addresses --show-raw-insn
 #target: [check_shared_lib_support]
 #dump: bal-jalx-pic-ignore.d
index 203c48333a0b90bf9270c73f744dc2ce1c35d048..bb0568b8368860f946810c4faa6a9ccccbc60a23 100644 (file)
@@ -1,7 +1,6 @@
 #name: MIPS BAL/JALX in PIC mode (ignore branch ISA)
 #source: ../../../gas/testsuite/gas/mips/branch-addend.s
-#as: -EB -32
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
+#ld: -Ttext 0x1c000000 -e 0x1c000000 -shared --ignore-branch-isa
 #objdump: -dr --prefix-addresses --show-raw-insn
 #target: [check_shared_lib_support]
 
index bd45be580f89f0ccd4de4dcd7d0f53e636954075..81b57396def896d6b094f97aefd561abae0cf982 100644 (file)
@@ -1,7 +1,6 @@
 #name: microMIPS BAL/JALX in PIC mode (n32)
 #source: ../../../gas/testsuite/gas/mips/branch-addend-micromips.s
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared
+#ld: -Ttext 0x1c000000 -e 0x1c000000 -shared
 #target: [check_shared_lib_support]
 #error: \A[^\n]*: in function `bar':\n
 #error:   \(\.text\+0x1014\): unsupported branch between ISA modes\Z
index 4817d0b6a82e92747312a12edf4ebdbdcfd29395..5d23ddb513c94fe047f91a75eeaf0017e295fa5b 100644 (file)
@@ -1,7 +1,6 @@
 #name: microMIPS BAL/JALX in PIC mode (n64)
 #source: ../../../gas/testsuite/gas/mips/branch-addend-micromips.s
-#as: -EB -64 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared
+#ld: -Ttext 0x1c000000 -e 0x1c000000 -shared
 #target: [check_shared_lib_support]
 #error: \A[^\n]*: in function `bar':\n
 #error:   \(\.text\+0x1014\): unsupported branch between ISA modes\Z
index 70b2ee72167b5bd5b84c417752e496f2bfe697b5..fd8ca876daaaf44e3696f96d2e6bf51651d9522f 100644 (file)
@@ -1,7 +1,6 @@
 #name: microMIPS BAL/JALX in PIC mode
 #source: ../../../gas/testsuite/gas/mips/branch-addend-micromips.s
-#as: -EB -32
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared
+#ld: -Ttext 0x1c000000 -e 0x1c000000 -shared
 #target: [check_shared_lib_support]
 #error: \A[^\n]*: in function `bar':\n
 #error:   \(\.text\+0x1014\): unsupported branch between ISA modes\Z
index 215c3308bd3d209b74c6576079208d4a098320d0..b830654580496f7a75b29d5183b3cd9216c4865c 100644 (file)
@@ -1,7 +1,6 @@
 #name: MIPS BAL/JALX in PIC mode (n32)
 #source: ../../../gas/testsuite/gas/mips/branch-addend.s
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared
+#ld: -Ttext 0x1c000000 -e 0x1c000000 -shared
 #target: [check_shared_lib_support]
 #error: \A[^\n]*: in function `bar':\n
 #error:   \(\.text\+0x1014\): unsupported branch between ISA modes\Z
index decd6eafcc7f4e9d1a07ff2b2cb84c89b31f06f0..c7e33c1471d6641a65539092cfd27c7fc15143cb 100644 (file)
@@ -1,7 +1,6 @@
 #name: MIPS BAL/JALX in PIC mode (n64)
 #source: ../../../gas/testsuite/gas/mips/branch-addend.s
-#as: -EB -64 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared
+#ld: -Ttext 0x1c000000 -e 0x1c000000 -shared
 #target: [check_shared_lib_support]
 #error: \A[^\n]*: in function `bar':\n
 #error:   \(\.text\+0x1014\): unsupported branch between ISA modes\Z
index 483608ad597cfe22774b46fd20f286038b004f76..3af8901290c7f406ed8b41166d5ff6c6e233626f 100644 (file)
@@ -1,7 +1,6 @@
 #name: MIPS BAL/JALX in PIC mode
 #source: ../../../gas/testsuite/gas/mips/branch-addend.s
-#as: -EB -32
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 -shared
+#ld: -Ttext 0x1c000000 -e 0x1c000000 -shared
 #target: [check_shared_lib_support]
 #error: \A[^\n]*: in function `bar':\n
 #error:   \(\.text\+0x1014\): unsupported branch between ISA modes\Z
index 82fd6c69ba5e2985908060a07018b988cd6981f6..10b18922ca5198d2ea7d9073df67483fd7ab0492 100644 (file)
@@ -1,6 +1,5 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS link branch to absolute expression with addend (n32)
 #source: ../../../gas/testsuite/gas/mips/branch-absolute-addend.s
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x12340000 -e foo
+#ld: -Ttext 0x12340000 -e foo
 #dump: branch-absolute-addend.d
index 9bb7c8f3fad3a6f6465e2f97dc69c8fd2fa48243..241056febd647222b67f24716636bee258578f6c 100644 (file)
@@ -1,6 +1,5 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS link branch to absolute expression with addend (n64)
 #source: ../../../gas/testsuite/gas/mips/branch-absolute-addend.s
-#as: -EB -64 -march=from-abi
-#ld: -EB -Ttext 0x12340000 -e foo
+#ld: -Ttext 0x12340000 -e foo
 #dump: branch-absolute-addend.d
index 063962b685fa98c765d7b9478f1d4a2684095c1b..248132750189f118ffe75323cf4da58102ec1b71 100644 (file)
@@ -1,8 +1,7 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS link branch to absolute expression with addend
 #source: ../../../gas/testsuite/gas/mips/branch-absolute-addend.s
-#as: -EB -32
-#ld: -EB -Ttext 0x12340000 -e foo
+#ld: -Ttext 0x12340000 -e foo
 
 .*: +file format .*mips.*
 
index b1ecf64a5c81ba6f30cd93fa1c6c7740eb67ccbc..9be6c0bbec4c15c9667af296fc125066d23239de 100644 (file)
@@ -1,6 +1,5 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS link branch to absolute expression (n32)
 #source: ../../../gas/testsuite/gas/mips/branch-absolute.s
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0 -e foo
+#ld: -Ttext 0 -e foo
 #dump: branch-absolute.d
index 9b8dcfff22f933e1402defe249ec5c688ca5e9d4..b06cc5e7e551cbb3b8bf2a1c9c232b40d483fed0 100644 (file)
@@ -1,6 +1,5 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS link branch to absolute expression (n64)
 #source: ../../../gas/testsuite/gas/mips/branch-absolute.s
-#as: -EB -64 -march=from-abi
-#ld: -EB -Ttext 0 -e foo
+#ld: -Ttext 0 -e foo
 #dump: branch-absolute.d
index 65e43177454f05fe06a9c0447bcd18d14e0799c3..7f8b9fd17f3d7c6f20f20b2274f8dffc67bfeb53 100644 (file)
@@ -1,8 +1,7 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS link branch to absolute expression
 #source: ../../../gas/testsuite/gas/mips/branch-absolute.s
-#as: -EB -32
-#ld: -EB -Ttext 0 -e foo
+#ld: -Ttext 0 -e foo
 
 .*: +file format .*mips.*
 
index 9564c11911deb45e4870f0806eb40805187f401a..a9eb4ea3f095db8899400afff8d55484248adbbd 100644 (file)
@@ -1,7 +1,7 @@
 #name: objdump -p print 64-bit values
 #source: dyn-sec64.s
-#as: -mips3 -EB -64
-#ld: -Tdyn-sec64.ld -shared -melf64btsmip
+#as: -mips3
+#ld: -Tdyn-sec64.ld -shared
 #objdump: -p
 
 .*: .* file format .*
index eafd022816df8e7a51c8eace468e8c09e5b9259f..9e1a0d633a1c40490ed8c86bcd7c2ab34a8f910a 100644 (file)
@@ -1,9 +1,9 @@
 #name: MIPS eh-frame 1, n32
 #source: eh-frame1.s
 #source: eh-frame1.s
-#as: -march=from-abi -EB -n32 --defsym alignment=2 --defsym fill=0x40
+#as: --defsym alignment=2 --defsym fill=0x40
 #readelf: --relocs -wf
-#ld: -shared -melf32btsmipn32 -Teh-frame1.ld
+#ld: -shared -Teh-frame1.ld
 #warning: FDE encoding in.*prevents \.eh_frame_hdr table being created.
 
 Relocation section '\.rel\.dyn' .*:
index 38022775ec4e6886b95f99ecaf4470f20ad1c71b..b1b7d9d31dd5ffd854e28ddd0b5926e6f9b6d0ad 100644 (file)
@@ -1,9 +1,9 @@
 #name: MIPS eh-frame 1, n64
 #source: eh-frame1.s
 #source: eh-frame1.s
-#as: -march=from-abi -EB -64 --defsym alignment=3 --defsym fill=0x40
+#as: --defsym alignment=3 --defsym fill=0x40
 #readelf: --relocs -wf
-#ld: -shared -melf64btsmip -Teh-frame1.ld
+#ld: -shared -Teh-frame1.ld
 #warning: FDE encoding in.*prevents \.eh_frame_hdr table being created.
 
 Relocation section '\.rel\.dyn' .*:
index 528be8753773dff602dd9fa0cb8b34107fb6d986..556ef6cf59a473ca33687014dedd99785ebddcf0 100644 (file)
@@ -1,9 +1,9 @@
 #name: MIPS eh-frame 2, n32
 #source: eh-frame1.s
 #source: eh-frame1.s
-#as: -march=from-abi -EB -n32 --defsym alignment=2 --defsym fill=0
+#as: --defsym alignment=2 --defsym fill=0
 #readelf: --relocs -wf
-#ld: -shared -melf32btsmipn32 -Teh-frame1.ld
+#ld: -shared -Teh-frame1.ld
 #warning: FDE encoding in.*prevents \.eh_frame_hdr table being created.
 
 Relocation section '\.rel\.dyn' .*:
index 505e6dba3d405b08cc6987ccf5131f55d5b9636e..b43664f19cfa8093432bf47fea3a80cc6722bf2c 100644 (file)
@@ -1,9 +1,9 @@
 #name: MIPS eh-frame 2, n64
 #source: eh-frame1.s
 #source: eh-frame1.s
-#as: -march=from-abi -EB -64 --defsym alignment=3 --defsym fill=0
+#as: --defsym alignment=3 --defsym fill=0
 #readelf: --relocs -wf
-#ld: -shared -melf64btsmip -Teh-frame1.ld
+#ld: -shared -Teh-frame1.ld
 #warning: FDE encoding in.*prevents \.eh_frame_hdr table being created.
 
 Relocation section '\.rel\.dyn' .*:
index 58f23edd29362a4e8399905a8102b2c8e869571e..82e41befb889a34adc2223dd1e9e675e1e2efd46 100644 (file)
@@ -1,5 +1,5 @@
 #name: MIPS ELF got reloc n32
-#as: -march=from-abi -EB -n32 -KPIC
+#as: -KPIC
 #objcopy_objects: -R .MIPS.abiflags
 #source: ../../../gas/testsuite/gas/mips/elf-rel-got-n32.s RUN_OBJCOPY
 #ld:
index 174153dd1ff8006c22ec538650594afdb2a749cb..bcb4b880921b24e9fe296b1420123725cdf68b64 100644 (file)
@@ -1,5 +1,5 @@
 #name: MIPS ELF got reloc n32
-#as: -march=from-abi -EB -n32 -KPIC
+#as: -KPIC
 #objcopy_objects: -R .MIPS.abiflags -K __start
 #source: ../../../gas/testsuite/gas/mips/elf-rel-got-n32.s RUN_OBJCOPY
 #ld:
index c55900f82465c5b2944adcb7587d7ba658782375..2f617f2fb5a660f437d6703ae9253b0d5034ecf6 100644 (file)
@@ -1,5 +1,5 @@
 #name: MIPS ELF got reloc n64
-#as: -march=from-abi -EB -64 -KPIC
+#as: -KPIC
 #objcopy_objects: -R .MIPS.abiflags
 #source: ../../../gas/testsuite/gas/mips/elf-rel-got-n64.s RUN_OBJCOPY
 #ld:
index 23f6a29e45b044fa7a86a626ed0e9ec481d834f9..0b5841e1b1adba447ab1b2fa77eaa7aad9ce5f17 100644 (file)
@@ -1,5 +1,5 @@
 #name: MIPS ELF got reloc n64
-#as: -march=from-abi -EB -64 -KPIC
+#as: -KPIC
 #objcopy_objects: -R .MIPS.abiflags
 #source: ../../../gas/testsuite/gas/mips/elf-rel-got-n64.s RUN_OBJCOPY
 #ld:
index 8e2822db832eded67641c6132f9dd0525f65c208..e1b5b16e1fee8608d6c782edbf05e2efa764a587 100644 (file)
@@ -1,5 +1,5 @@
 #name: MIPS ELF got reloc n64
-#as: -march=from-abi -EB -64 -KPIC
+#as: -KPIC
 #objcopy_objects: -R .MIPS.abiflags
 #source: ../../../gas/testsuite/gas/mips/elf-rel-got-n64.s RUN_OBJCOPY
 #ld:
index d6c2e85d037327f7baa8f7812ef6bceccec677c1..87e561db2df21a087150ac406b01c7c3f19204d9 100644 (file)
@@ -1,5 +1,5 @@
 #name: MIPS ELF xgot reloc n32
-#as: -march=from-abi -EB -n32 -KPIC -xgot
+#as: -KPIC -xgot
 #objcopy_objects: -R .MIPS.abiflags -K __start
 #source: ../../../gas/testsuite/gas/mips/elf-rel-got-n32.s RUN_OBJCOPY
 #ld:
index b202e926432abb4169801fc3da033e3e834442be..56f150c0ceb4e90b6174cc4d13dfd49816b1b97b 100644 (file)
@@ -1,5 +1,5 @@
 #name: MIPS ELF xgot reloc n32
-#as: -march=from-abi -EB -n32 -KPIC -xgot
+#as: -KPIC -xgot
 #objcopy_objects: -R .MIPS.abiflags -K __start
 #source: ../../../gas/testsuite/gas/mips/elf-rel-got-n32.s RUN_OBJCOPY
 #ld:
index bdacf78bc459013179643317e717d2ce7ab4f3dd..fafd3b9f0e8e222d7d230a16fa072253b6bc17b3 100644 (file)
@@ -1,5 +1,5 @@
 #name: MIPS ELF xgot reloc n64
-#as: -march=from-abi -EB -64 -KPIC -xgot
+#as: -KPIC -xgot
 #objcopy_objects: -R .MIPS.abiflags -K __start
 #source: ../../../gas/testsuite/gas/mips/elf-rel-got-n64.s RUN_OBJCOPY
 #ld:
index aedbb070a2bccd26487dec00fa651fa1d7844693..540578bcde1e754050ea765f1a0ff9b36d3ed394 100644 (file)
@@ -1,5 +1,5 @@
 #name: MIPS ELF xgot reloc n64
-#as: -march=from-abi -EB -64 -KPIC -xgot
+#as: -KPIC -xgot
 #objcopy_objects: -R .MIPS.abiflags -K __start
 #source: ../../../gas/testsuite/gas/mips/elf-rel-got-n64.s RUN_OBJCOPY
 #ld:
index fd21487382f9552fd481dea5d909dbc6a44681b8..a8a1cdd3cef3401387bdf599991fed4daf522916 100644 (file)
@@ -1,5 +1,5 @@
 #name: MIPS ELF xgot reloc n64
-#as: -march=from-abi -EB -64 -KPIC -xgot
+#as: -KPIC -xgot
 #objcopy_objects: -R .MIPS.abiflags -K __start
 #source: ../../../gas/testsuite/gas/mips/elf-rel-got-n64.s RUN_OBJCOPY
 #ld:
index bff7c70e83d431d1856f1d7e983b3c10f45b6708..86305d314c5aa3960059fe16f7efddf6bd2af6b1 100644 (file)
@@ -1,7 +1,7 @@
 #name: Emit relocs 1
-#source: emit-relocs-1a.s -march=from-abi -mabi=n32 -EB
-#source: emit-relocs-1b.s -march=from-abi -mabi=n32 -EB
-#ld: -q -T emit-relocs-1.ld -melf32btsmipn32
+#source: emit-relocs-1a.s
+#source: emit-relocs-1b.s
+#ld: -q -T emit-relocs-1.ld
 #objdump: -sr
 
 .*:     file format .*
index 56cc0b3151a4f7c8025405ec18eec091aaad7281..046cec1408d294ccd00a98dc7521c28ca1ebc3ed 100644 (file)
@@ -1,7 +1,7 @@
 #name: GOT dump (readelf -A) test 2
 #source: got-dump-2.s
-#as: -mips3 -EB -64
-#ld: -Tgot-dump-2.ld -shared -melf64btsmip
+#as: -mips3
+#ld: -Tgot-dump-2.ld -shared
 #readelf: -A
 
 Primary GOT:
index 9cdefeb594973d7b45316cd1ce04ec6eef2a67d4..bdfdb6227d22315056e509ad6e23e5b21e815c88 100644 (file)
@@ -1,7 +1,6 @@
 #name: GOT page test 2
 #source: got-page-2.s
-#as: -march=from-abi -EB -n32
-#ld: -T got-page-1.ld -shared -melf32btsmipn32
+#ld: -T got-page-1.ld -shared
 #readelf: -d
 #
 # There should be 10 page entries and 2 reserved entries
index f02bfeae9fe260819368897d95a93352f92d1249..17be8425055eb268624ccd92c0c09ba2c6d6f0f0 100644 (file)
@@ -1,7 +1,6 @@
 #name: MIPS JAL to global symbol overflow 0
 #source: jal-global-overflow.s
-#as: -EB -32
-#ld: -EB -Ttext 0x20000000 -e 0x20000000
+#ld: -Ttext 0x20000000 -e 0x20000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 
 .*: +file format .*mips.*
index 2ee5a761108a8efc6e1dfbabd561e7f74133ef9d..9449f7d4ce6ba5a801e33a063ab7485bb8eec484 100644 (file)
@@ -1,7 +1,6 @@
 #name: MIPS JAL to global symbol overflow 1
 #source: jal-global-overflow.s
-#as: -EB -32
-#ld: -EB -Ttext 0x1fffd000 -e 0x1fffd000
+#ld: -Ttext 0x1fffd000 -e 0x1fffd000
 #error: \A[^\n]*: in function `foo':\n
 #error:   \(\.text\+0x2000\): relocation truncated to fit: R_MIPS_26 against `abar'\n
 #error:   [^\n]*: in function `bar':\n
index 592b2aec92be45e306aa88c622d2f69e1cdfef49..fc3ad8b0c3cb23ebd16209a4f0d9d99f20ad4b16 100644 (file)
@@ -1,6 +1,5 @@
 #name: MIPS JAL to local symbol overflow 0
 #source: jal-local-overflow.s
-#as: -EB -32
-#ld: -EB -Ttext 0x20000000 -e 0x20000000
+#ld: -Ttext 0x20000000 -e 0x20000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 #dump: jal-global-overflow-0.d
index c4deb8bf159fcf776f5d967b3f74480d3a6afd47..dcc7d1f239697962cd671d64fc297186a6968f57 100644 (file)
@@ -1,7 +1,6 @@
 #name: MIPS JAL to local symbol overflow 1
 #source: jal-local-overflow.s
-#as: -EB -32
-#ld: -EB -Ttext 0x1fffd000 -e 0x1fffd000
+#ld: -Ttext 0x1fffd000 -e 0x1fffd000
 #error: \A[^\n]*: in function `foo':\n
 #error:   \(\.text\+0x2000\): relocation truncated to fit: R_MIPS_26 against `.text'\n
 #error:   [^\n]*: in function `bar':\n
index 49cda75c76bb349841550b6e931e6e838dd5b87c..a93df5e0317b94f60e7cc622367f1c87d9ed7a0a 100644 (file)
@@ -1,7 +1,7 @@
 #name: jal to bal
 #source: jalbal.s
-#as: -EB -n32 -march=rm9000
-#ld: -EB -e s1 -Ttext 0x200000a0
+#as: -march=rm9000
+#ld: -e s1 -Ttext 0x200000a0
 #objdump: -d
 
 .*file format elf.*mips.*
index a3644225931f5789ecc20ddc8f7de84c473507ce..45cc2d51e02087a0f739f70783f173ef18a69bcb 100644 (file)
@@ -1,6 +1,5 @@
 #name: MIPS JAL/JALX addend calculation (n32)
 #source: ../../../gas/testsuite/gas/mips/jalx-addend.s
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 #dump: jalx-addend.d
index b6884c50b0fc04b55426033d2d33ea124aba535f..1059f98bd7ea38ac43042b47e33e713fe1c98c2c 100644 (file)
@@ -1,6 +1,5 @@
 #name: MIPS JAL/JALX addend calculation (n64)
 #source: ../../../gas/testsuite/gas/mips/jalx-addend.s
-#as: -EB -64 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 #dump: jalx-addend.d
index 39cf6f954f18cb5f344a1fc39c679667f35a875e..3ac0fee22eb43e920892a8743a796ee3df2b15fa 100644 (file)
@@ -1,7 +1,6 @@
 #name: MIPS JAL/JALX addend calculation
 #source: ../../../gas/testsuite/gas/mips/jalx-addend.s
-#as: -EB -32
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 
 .*: +file format .*mips.*
index b5615b92c233626876965fd6996c68ab34acf941..41e995bfced7c03337c2dd67ad72cff87f77ff82 100644 (file)
@@ -1,6 +1,5 @@
 #name: MIPS JALX to local symbol (n32)
 #source: ../../../gas/testsuite/gas/mips/jalx-local.s
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 #dump: jalx-local.d
index 3a1836394079543776f5e0490cf47bc3e0123744..0974ab691a8734fd0c53cf751919d5821d6df51e 100644 (file)
@@ -1,6 +1,5 @@
 #name: MIPS JALX to local symbol (n64)
 #source: ../../../gas/testsuite/gas/mips/jalx-local.s
-#as: -EB -64 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 #dump: jalx-local.d
index 04538588cabebebb868bf804683b0608244d1b9f..bf8005f23c23e294f1e693cd78dc1a0ea1bd186d 100644 (file)
@@ -1,7 +1,6 @@
 #name: MIPS JALX to local symbol
 #source: ../../../gas/testsuite/gas/mips/jalx-local.s
-#as: -EB -32
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 
 .*: +file format .*mips.*
index c78684736cf9b0be46db4baf5dd0e9e507232b2d..3cdbc834b2ff87d326b25c5e263a77a44ec33490 100644 (file)
@@ -1,7 +1,7 @@
 #name: jr to b conversion
 #source: jr-to-b-1.s
-#as: -32 -mips1 -EB
-#ld: -shared -melf32btsmip
+#as: -mips1
+#ld: -shared
 #objdump: -d
 
 .*:     file format .*
index 4b6399fc5d221114c0f9489a95df3f723519acce..216e47390132b31225e24febb89ebdaf143f39c7 100644 (file)
@@ -1,7 +1,7 @@
 #name: jr not to b conversion
 #source: jr-to-b-2.s
-#as: -32 -mips1 -EB
-#ld: -shared -melf32btsmip
+#as: -mips1
+#ld: -shared
 #objdump: -d
 
 .*:     file format .*
index 5e7872338f4fe6bb85ba346eef9e84cca339e75b..0dbc25efc5851bc6887011d1427c8b59e9bfad7c 100644 (file)
@@ -1,8 +1,8 @@
 #readelf: -Ah
 #name: LSI 4010 processor ISA level
 #source: empty.s
-#as: -EB -32 -m4010
-#ld: -EB -r
+#as: -m4010
+#ld: -r
 
 ELF Header:
 #...
index 2051cea6be0264e32273843a011d1a14a700d269..70d33381d15fb95ecc5101783087b6414447232b 100644 (file)
@@ -1,6 +1,5 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: microMIPS link branch to absolute expression with addend (n32)
 #source: ../../../gas/testsuite/gas/mips/micromips-branch-absolute-addend.s
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x12340000 -e foo
+#ld: -Ttext 0x12340000 -e foo
 #dump: micromips-branch-absolute-addend.d
index 3814a0ae45335e738dd23dc44a581d13818a1bd9..1cb6d5729027b48fa1c1ec82333016946f0d2521 100644 (file)
@@ -1,6 +1,5 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: microMIPS link branch to absolute expression with addend (n64)
 #source: ../../../gas/testsuite/gas/mips/micromips-branch-absolute-addend.s
-#as: -EB -64 -march=from-abi
-#ld: -EB -Ttext 0x12340000 -e foo
+#ld: -Ttext 0x12340000 -e foo
 #dump: micromips-branch-absolute-addend.d
index fc3bd0306e67e1bf39d0dff9fa3d0bb43d32fe89..cf3afeccdb203be7259547fac79d7ba3655b43e8 100644 (file)
@@ -1,8 +1,7 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: microMIPS link branch to absolute expression with addend
 #source: ../../../gas/testsuite/gas/mips/micromips-branch-absolute-addend.s
-#as: -EB -32
-#ld: -EB -Ttext 0x12340000 -e foo
+#ld: -Ttext 0x12340000 -e foo
 
 .*: +file format .*mips.*
 
index 7b1dd466c182ac507fd4eebb2911028f060f7540..6d1759fc092596e3d80da21196c69b6042a5a411 100644 (file)
@@ -1,6 +1,5 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: microMIPS link branch to absolute expression (n32)
 #source: ../../../gas/testsuite/gas/mips/micromips-branch-absolute.s
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0 -e foo
+#ld: -Ttext 0 -e foo
 #dump: micromips-branch-absolute.d
index e661935911226b3b4835033a78da3129b64f3a8d..9aa47e131f3c10ca9686feeee006fb9f513c2cab 100644 (file)
@@ -1,6 +1,5 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: microMIPS link branch to absolute expression (n64)
 #source: ../../../gas/testsuite/gas/mips/micromips-branch-absolute.s
-#as: -EB -64 -march=from-abi
-#ld: -EB -Ttext 0 -e foo
+#ld: -Ttext 0 -e foo
 #dump: micromips-branch-absolute.d
index ad44f5ab16d1935dcfabaf6a25c236481c6824d2..ba377e657267e614bd404dfc8b8dc56041042e0a 100644 (file)
@@ -1,8 +1,7 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: microMIPS link branch to absolute expression
 #source: ../../../gas/testsuite/gas/mips/micromips-branch-absolute.s
-#as: -EB -32
-#ld: -EB -Ttext 0 -e foo
+#ld: -Ttext 0 -e foo
 
 .*: +file format .*mips.*
 
index 64d71c61891e91c29dc4e651e56274784e39f98e..7e8ef69e35849fbcccf4452eefb98a6c5de73fdf 100644 (file)
@@ -52,42 +52,201 @@ if {![istarget mips*-*-*] || ![is_elf_format]} {
     return
 }
 
-set has_newabi [expr [istarget *-*-irix6*] \
-                    || [istarget mips*-*-linux*] \
-                    || [istarget mips*-sde-elf*] \
-                    || [istarget mips*-mti-elf*] \
-                    || [istarget mips*-img-elf*]]
-set has_elf32 [expr ![istarget *-*-openbsd*]]
+# run_dump_test_abi ABI NAME ARGS
+#
+# Invoke "run_dump_test" for test NAME using ABI if supported by the
+# target used, passing predefined ABI-specific arguments.  ARGS are
+# as with "run_dump_test" and are appended to ABI-specific arguments,
+# except for the special "noarch" keyword, which, if present, must
+# appear first and is consumed causing any "-march=" option to be
+# removed from ABI-specific GAS arguments.
+proc run_dump_test_abi { abi name args } {
+    global abi_asflags
+    global abi_ldflags
+    global has_abi
+
+    set args [lindex $args 0]
+    set asflags $abi_asflags($abi)
+    set ldflags $abi_ldflags($abi)
+    if { [lindex $args 0] == "noarch" } {
+       set asflags [regsub -- {-march=[^[:blank:]]*} $asflags {}]
+       set args [lreplace $args 0 0]
+    }
+    if !$has_abi($abi) {
+       lappend args {notarget *-*-*}
+    }
+    if { [llength $args] > 0 } {
+       run_dump_test $name [concat [list [list as $asflags] \
+                                         [list ld $ldflags]] \
+                                   $args]
+    } else {
+       run_dump_test $name [list [list as $asflags] [list ld $ldflags]]
+    }
+}
+
+# run_dump_test_o32 NAME ARGS
+#
+# Invoke "run_dump_test_abi" for test NAME using the o32 ABI and
+# passing ARGS.
+proc run_dump_test_o32 { name args } {
+    run_dump_test_abi o32 $name [lindex $args 0]
+}
+
+# run_dump_test_n32 NAME ARGS
+#
+# Invoke "run_dump_test_abi" for test NAME using the n32 ABI and
+# passing ARGS.
+proc run_dump_test_n32 { name args } {
+    run_dump_test_abi n32 $name [lindex $args 0]
+}
+
+# run_dump_test_n64 NAME ARGS
+#
+# Invoke "run_dump_test_abi" for test NAME using the n64 ABI and
+# passing ARGS.
+proc run_dump_test_n64 { name args } {
+    run_dump_test_abi n64 $name [lindex $args 0]
+}
+
+# run_dump_test_eabi NAME ARGS
+#
+# Invoke "run_dump_test_abi" for test NAME using the eabi ABI and
+# passing ARGS.
+proc run_dump_test_eabi { name args } {
+    run_dump_test_abi eabi $name [lindex $args 0]
+}
+
+set has_abi(o32) [expr ![istarget *-*-openbsd*] \
+                    && ![istarget mips64*el-ps2-elf*]]
+set has_abi(n32) [expr [istarget *-img-elf*] \
+                    || [istarget *-mti-elf*] \
+                    || [istarget mips64*el-ps2-elf*] \
+                    || [istarget *-sde-elf*] \
+                    || [istarget *-*-freebsd*] \
+                    || [istarget *-*-irix6*] \
+                    || [istarget *-*-kfreebsd*-gnu] \
+                    || [istarget *-*-linux*]]
+set has_abi(n64) [expr [istarget *-*-freebsd*] \
+                    || [istarget *-*-irix6*] \
+                    || [istarget *-*-kfreebsd*-gnu] \
+                    || [istarget *-*-linux*] \
+                    || [istarget *-*-netbsd*] \
+                    || [istarget *-*-openbsd*]]
+set has_abi(eabi) [expr [istarget *-*-elf] \
+                     && $has_abi(o32)]
 set irix [expr [istarget *-*-irix*]]
 set linux_gnu [expr [istarget mips*-*-linux*]]
 set embedded_elf [expr [istarget mips*-*-elf]]
 
 # Set defaults.
-set abi_asflags(o32) "-32"
-set abi_asflags(n32) "-march=from-abi -n32 -EB"
-set abi_asflags(n64) "-march=from-abi -64 -EB"
+set abi_asflags(o32) ""
+set abi_asflags(n32) ""
+set abi_asflags(n64) ""
+set abi_asflags(eabi) ""
 set abi_ldflags(o32) ""
-set abi_ldflags(n32) -melf32bmipn32
-set abi_ldflags(n64) -melf64bmip
+set abi_ldflags(n32) ""
+set abi_ldflags(n64) ""
+set abi_ldflags(eabi) ""
 
 # Override as needed.
-if { [istarget *-*-irix6*] } {
-    set abi_asflags(o32) "-32 -EB"
+if {[istarget *-*-openbsd*] } {
+    set irixemul 0
+} elseif { [istarget mips64*-*-linux*] } {
+    if [istarget *el-*-*] {
+       set abi_asflags(o32) -32
+       set abi_ldflags(o32) -melf32ltsmip
+       set abi_asflags(n64) "-march=from-abi -64"
+       set abi_ldflags(n64) -melf64ltsmip
+    } else {
+       set abi_asflags(o32) -32
+       set abi_ldflags(o32) -melf32btsmip
+       set abi_asflags(n64) "-march=from-abi -64"
+       set abi_ldflags(n64) -melf64btsmip
+    }
+    set irixemul 0
+} elseif {[istarget *-*-linux*] } {
+    if [istarget *el-*-*] {
+       set abi_asflags(n32) "-march=from-abi -n32"
+       set abi_ldflags(n32) -melf32ltsmipn32
+       set abi_asflags(n64) "-march=from-abi -64"
+       set abi_ldflags(n64) -melf64ltsmip
+    } else {
+       set abi_asflags(n32) "-march=from-abi -n32"
+       set abi_ldflags(n32) -melf32btsmipn32
+       set abi_asflags(n64) "-march=from-abi -64"
+       set abi_ldflags(n64) -melf64btsmip
+    }
+    set irixemul 0
+} elseif {[istarget *-img-elf*] \
+     || [istarget *-mti-elf*] \
+     || [istarget *-sde-elf*] \
+     || [istarget *-*-netbsd*] \
+     || [istarget *-*-linux*] \
+     || [istarget *-*-sysv4*] } {
+    if [istarget *el-*-*] {
+       set abi_asflags(o32) -32
+       set abi_asflags(n32) "-march=from-abi -n32"
+       set abi_ldflags(n32) -melf32ltsmipn32
+       set abi_asflags(n64) "-march=from-abi -64"
+       set abi_ldflags(n64) -melf64ltsmip
+    } else {
+       set abi_asflags(o32) -32
+       set abi_asflags(n32) "-march=from-abi -n32"
+       set abi_ldflags(n32) -melf32btsmipn32
+       set abi_asflags(n64) "-march=from-abi -64"
+       set abi_ldflags(n64) -melf64btsmip
+    }
+    set irixemul 0
+} elseif { [istarget mips64*-*-freebsd*] \
+          || [istarget mips64*-*-kfreebsd*-gnu] } {
+    if [istarget *el-*-*] {
+       set abi_asflags(o32) -32
+       set abi_ldflags(o32) -melf32ltsmip_fbsd
+       set abi_asflags(n64) "-march=from-abi -64"
+       set abi_ldflags(n64) -melf64ltsmip_fbsd
+    } else {
+       set abi_asflags(o32) -32
+       set abi_ldflags(o32) -melf32btsmip_fbsd
+       set abi_asflags(n64) "-march=from-abi -64"
+       set abi_ldflags(n64) -melf64btsmip_fbsd
+    }
+    set irixemul 0
+} elseif { [istarget *-*-freebsd*] \
+          || [istarget *-*-kfreebsd*-gnu] } {
+    if [istarget *el-*-*] {
+       set abi_asflags(n32) "-march=from-abi -n32"
+       set abi_ldflags(n32) -melf32ltsmipn32_fbsd
+       set abi_asflags(n64) "-march=from-abi -64"
+       set abi_ldflags(n64) -melf64ltsmip_fbsd
+    } else {
+       set abi_asflags(n32) "-march=from-abi -n32"
+       set abi_ldflags(n32) -melf32btsmipn32_fbsd
+       set abi_asflags(n64) "-march=from-abi -64"
+       set abi_ldflags(n64) -melf64btsmip_fbsd
+    }
+    set irixemul 0
+} elseif { [istarget *vr4100*-*-elf*] \
+          || [istarget *vr4300*-*-elf*] \
+          || [istarget *vr5000*-*-elf*] } {
+    set abi_asflags(o32) -32
+    set irixemul 1
+} elseif { [istarget mips64*el-ps2-elf*] } {
+    set abi_asflags(o32) -32
+    set abi_ldflags(o32) -melf32lr5900
+    set irixemul 1
+} elseif { [istarget *-*-elf*] \
+          || [istarget *-*-rtems*] } {
+    set abi_asflags(o32) -32
+    set irixemul 1
+} elseif { [istarget *-*-irix6*] } {
+    set abi_asflags(o32) -32
+    set abi_asflags(n64) "-march=from-abi -64"
     set abi_ldflags(o32) -melf32bsmip
-} elseif { [istarget mips64*-linux*] } {
-    set abi_asflags(o32) "-32 -EB"
-    set abi_ldflags(o32) -melf32btsmip
-} elseif { [istarget mips64*-*freebsd*] } {
-    set abi_asflags(o32) "-32 -EB"
-    set abi_ldflags(o32) -melf32btsmip_fbsd
-}
-if { [istarget mips*-*-linux*] || [istarget mips*-sde-elf*]
-     || [istarget mips*-mti-elf*] || [istarget mips*-img-elf*]} {
-    set abi_ldflags(n32) -melf32btsmipn32
-    set abi_ldflags(n64) -melf64btsmip
-} elseif { [istarget mips64*-*freebsd*] } {
-    set abi_ldflags(n32) -melf32btsmipn32_fbsd
-    set abi_ldflags(n64) -melf64btsmip_fbsd
+    set abi_ldflags(n64) -melf64bmip
+    set irixemul 1
+} else {
+    set abi_asflags(o32) -32
+    set irixemul 1
 }
 
 if { $linux_gnu } {
@@ -145,85 +304,56 @@ run_dump_test "mips16-1"
 # MIPS branch offset final link checking.
 run_dump_test "branch-misc-1"
 run_dump_test "branch-misc-2"
-run_dump_test "branch-absolute" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "branch-absolute-addend" [list [list ld $abi_ldflags(o32)]]
-if $has_newabi {
-    run_dump_test "branch-absolute-n32" [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "branch-absolute-addend-n32" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "branch-absolute-n64" [list [list ld $abi_ldflags(n64)]]
-    run_dump_test "branch-absolute-addend-n64" \
-                                       [list [list ld $abi_ldflags(n64)]]
-}
-
-run_dump_test "mips16-pcrel-0" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "mips16-pcrel-1" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "mips16e2-pcrel-0" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "mips16e2-pcrel-1" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "mips16-pcrel-addend-2" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "mips16-pcrel-addend-6" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "mips16e2-pcrel-addend-2" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "mips16e2-pcrel-addend-6" [list [list ld $abi_ldflags(o32)]]
-if $has_newabi {
-    run_dump_test "mips16-pcrel-n32-0" [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "mips16-pcrel-n32-1" [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "mips16-pcrel-n64-sym32-0" [list [list ld $abi_ldflags(n64)]]
-    run_dump_test "mips16-pcrel-n64-sym32-1" [list [list ld $abi_ldflags(n64)]]
-    run_dump_test "mips16e2-pcrel-n32-0" [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "mips16e2-pcrel-n32-1" [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "mips16e2-pcrel-n64-sym32-0" \
-                                       [list [list ld $abi_ldflags(n64)]]
-    run_dump_test "mips16e2-pcrel-n64-sym32-1" \
-                                       [list [list ld $abi_ldflags(n64)]]
-}
-
-run_dump_test "mips16-branch-2" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "mips16-branch-3" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "mips16-branch-addend-2" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "mips16-branch-addend-3" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "mips16-branch-absolute" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "mips16-branch-absolute-1" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "mips16-branch-absolute-2" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "mips16-branch-absolute-addend" \
-                                       [list [list ld $abi_ldflags(o32)]]
-run_dump_test "mips16-branch-absolute-addend-1" \
-                                       [list [list ld $abi_ldflags(o32)]]
-if $has_newabi {
-    run_dump_test "mips16-branch-absolute-n32" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "mips16-branch-absolute-n32-1" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "mips16-branch-absolute-n32-2" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "mips16-branch-absolute-addend-n32" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "mips16-branch-absolute-addend-n32-1" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "mips16-branch-absolute-n64" \
-                                       [list [list ld $abi_ldflags(n64)]]
-    run_dump_test "mips16-branch-absolute-n64-1" \
-                                       [list [list ld $abi_ldflags(n64)]]
-    run_dump_test "mips16-branch-absolute-n64-2" \
-                                       [list [list ld $abi_ldflags(n64)]]
-    run_dump_test "mips16-branch-absolute-addend-n64" \
-                                       [list [list ld $abi_ldflags(n64)]]
-    run_dump_test "mips16-branch-absolute-addend-n64-1" \
-                                       [list [list ld $abi_ldflags(n64)]]
-}
-
-run_dump_test "micromips-branch-absolute" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "micromips-branch-absolute-addend" \
-                                       [list [list ld $abi_ldflags(o32)]]
-if $has_newabi {
-    run_dump_test "micromips-branch-absolute-n32" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "micromips-branch-absolute-addend-n32" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "micromips-branch-absolute-n64" \
-                                       [list [list ld $abi_ldflags(n64)]]
-    run_dump_test "micromips-branch-absolute-addend-n64" \
-                                       [list [list ld $abi_ldflags(n64)]]
-}
+run_dump_test_o32 "branch-absolute"
+run_dump_test_o32 "branch-absolute-addend"
+run_dump_test_n32 "branch-absolute-n32"
+run_dump_test_n32 "branch-absolute-addend-n32"
+run_dump_test_n64 "branch-absolute-n64"
+run_dump_test_n64 "branch-absolute-addend-n64"
+
+run_dump_test_o32 "mips16-pcrel-0"
+run_dump_test_o32 "mips16-pcrel-1" noarch
+run_dump_test_o32 "mips16e2-pcrel-0" noarch
+run_dump_test_o32 "mips16e2-pcrel-1" noarch
+run_dump_test_o32 "mips16-pcrel-addend-2"
+run_dump_test_o32 "mips16-pcrel-addend-6"
+run_dump_test_o32 "mips16e2-pcrel-addend-2" noarch
+run_dump_test_o32 "mips16e2-pcrel-addend-6" noarch
+run_dump_test_n32 "mips16-pcrel-n32-0"
+run_dump_test_n32 "mips16-pcrel-n32-1"
+run_dump_test_n64 "mips16-pcrel-n64-sym32-0"
+run_dump_test_n64 "mips16-pcrel-n64-sym32-1"
+run_dump_test_n32 "mips16e2-pcrel-n32-0" noarch
+run_dump_test_n32 "mips16e2-pcrel-n32-1" noarch
+run_dump_test_n64 "mips16e2-pcrel-n64-sym32-0" noarch
+run_dump_test_n64 "mips16e2-pcrel-n64-sym32-1" noarch
+
+run_dump_test_o32 "mips16-branch-2"
+run_dump_test_o32 "mips16-branch-3"
+run_dump_test_o32 "mips16-branch-addend-2"
+run_dump_test_o32 "mips16-branch-addend-3"
+run_dump_test_o32 "mips16-branch-absolute"
+run_dump_test_o32 "mips16-branch-absolute-1"
+run_dump_test_o32 "mips16-branch-absolute-2"
+run_dump_test_o32 "mips16-branch-absolute-addend"
+run_dump_test_o32 "mips16-branch-absolute-addend-1"
+run_dump_test_n32 "mips16-branch-absolute-n32"
+run_dump_test_n32 "mips16-branch-absolute-n32-1"
+run_dump_test_n32 "mips16-branch-absolute-n32-2"
+run_dump_test_n32 "mips16-branch-absolute-addend-n32"
+run_dump_test_n32 "mips16-branch-absolute-addend-n32-1"
+run_dump_test_n64 "mips16-branch-absolute-n64"
+run_dump_test_n64 "mips16-branch-absolute-n64-1"
+run_dump_test_n64 "mips16-branch-absolute-n64-2"
+run_dump_test_n64 "mips16-branch-absolute-addend-n64"
+run_dump_test_n64 "mips16-branch-absolute-addend-n64-1"
+
+run_dump_test_o32 "micromips-branch-absolute"
+run_dump_test_o32 "micromips-branch-absolute-addend"
+run_dump_test_n32 "micromips-branch-absolute-n32"
+run_dump_test_n32 "micromips-branch-absolute-addend-n32"
+run_dump_test_n64 "micromips-branch-absolute-n64"
+run_dump_test_n64 "micromips-branch-absolute-addend-n64"
 
 # Jalx test
 run_dump_test "jalx-1"
@@ -250,47 +380,36 @@ if { $linux_gnu } {
              "jalx-2"]]
 }
 
-run_dump_test "jalx-addend" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "jalx-local" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "bal-jalx-addend" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "bal-jalx-addend-micromips" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "bal-jalx-local" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "bal-jalx-local-micromips" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "bal-jalx-pic" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "bal-jalx-pic-micromips" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "bal-jalx-pic-ignore" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "bal-jalx-pic-ignore-micromips" \
-                                       [list [list ld $abi_ldflags(o32)]]
-if $has_newabi {
-    run_dump_test "jalx-addend-n32" [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "jalx-local-n32" [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "bal-jalx-addend-n32" [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "bal-jalx-addend-micromips-n32" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "bal-jalx-local-n32" [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "bal-jalx-local-micromips-n32" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "bal-jalx-pic-n32" [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "bal-jalx-pic-micromips-n32" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "bal-jalx-pic-ignore-n32" [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "bal-jalx-pic-ignore-micromips-n32" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "jalx-addend-n64" [list [list ld $abi_ldflags(n64)]]
-    run_dump_test "jalx-local-n64" [list [list ld $abi_ldflags(n64)]]
-    run_dump_test "bal-jalx-addend-n64" [list [list ld $abi_ldflags(n64)]]
-    run_dump_test "bal-jalx-addend-micromips-n64" \
-                                       [list [list ld $abi_ldflags(n64)]]
-    run_dump_test "bal-jalx-local-n64" [list [list ld $abi_ldflags(n64)]]
-    run_dump_test "bal-jalx-local-micromips-n64" \
-                                       [list [list ld $abi_ldflags(n64)]]
-    run_dump_test "bal-jalx-pic-n64" [list [list ld $abi_ldflags(n64)]]
-    run_dump_test "bal-jalx-pic-micromips-n64" \
-                                       [list [list ld $abi_ldflags(n64)]]
-    run_dump_test "bal-jalx-pic-ignore-n64" [list [list ld $abi_ldflags(n64)]]
-    run_dump_test "bal-jalx-pic-ignore-micromips-n64" \
-                                       [list [list ld $abi_ldflags(n64)]]
-}
+run_dump_test_o32 "jalx-addend"
+run_dump_test_o32 "jalx-local"
+run_dump_test_o32 "bal-jalx-addend"
+run_dump_test_o32 "bal-jalx-addend-micromips"
+run_dump_test_o32 "bal-jalx-local"
+run_dump_test_o32 "bal-jalx-local-micromips"
+run_dump_test_o32 "bal-jalx-pic"
+run_dump_test_o32 "bal-jalx-pic-micromips"
+run_dump_test_o32 "bal-jalx-pic-ignore"
+run_dump_test_o32 "bal-jalx-pic-ignore-micromips"
+run_dump_test_n32 "jalx-addend-n32"
+run_dump_test_n32 "jalx-local-n32"
+run_dump_test_n32 "bal-jalx-addend-n32"
+run_dump_test_n32 "bal-jalx-addend-micromips-n32"
+run_dump_test_n32 "bal-jalx-local-n32"
+run_dump_test_n32 "bal-jalx-local-micromips-n32"
+run_dump_test_n32 "bal-jalx-pic-n32"
+run_dump_test_n32 "bal-jalx-pic-micromips-n32"
+run_dump_test_n32 "bal-jalx-pic-ignore-n32"
+run_dump_test_n32 "bal-jalx-pic-ignore-micromips-n32"
+run_dump_test_n64 "jalx-addend-n64"
+run_dump_test_n64 "jalx-local-n64"
+run_dump_test_n64 "bal-jalx-addend-n64"
+run_dump_test_n64 "bal-jalx-addend-micromips-n64"
+run_dump_test_n64 "bal-jalx-local-n64"
+run_dump_test_n64 "bal-jalx-local-micromips-n64"
+run_dump_test_n64 "bal-jalx-pic-n64"
+run_dump_test_n64 "bal-jalx-pic-micromips-n64"
+run_dump_test_n64 "bal-jalx-pic-ignore-n64"
+run_dump_test_n64 "bal-jalx-pic-ignore-micromips-n64"
 
 run_dump_test "unaligned-jalx-0" [list [list ld $abi_ldflags(o32)]]
 run_dump_test "unaligned-jalx-1" [list [list ld $abi_ldflags(o32)]]
@@ -301,123 +420,85 @@ run_dump_test "unaligned-jalx-mips16-1" [list [list ld $abi_ldflags(o32)]]
 run_dump_test "unaligned-jalx-micromips-0" [list [list ld $abi_ldflags(o32)]]
 run_dump_test "unaligned-jalx-micromips-1" [list [list ld $abi_ldflags(o32)]]
 
-if $has_newabi {
-    run_dump_test "unaligned-jalx-addend-0" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "unaligned-jalx-addend-1" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "unaligned-jalx-addend-2" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "unaligned-jalx-addend-3" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "unaligned-jalx-addend-mips16-0" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "unaligned-jalx-addend-mips16-1" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "unaligned-jalx-addend-micromips-0" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "unaligned-jalx-addend-micromips-1" \
-                                       [list [list ld $abi_ldflags(n32)]]
-}
-
-run_dump_test "unaligned-branch" [list [list ld $abi_ldflags(o32)]]
-
-if $has_newabi {
-    run_dump_test "unaligned-branch-2" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "unaligned-branch-ignore-2" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "unaligned-branch-r6-1" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "unaligned-branch-ignore-r6-1" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "unaligned-branch-r6-2" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "unaligned-branch-mips16" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "unaligned-branch-ignore-mips16" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "unaligned-branch-micromips" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "unaligned-branch-ignore-micromips" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "unaligned-jump" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "unaligned-jump-mips16" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "unaligned-jump-micromips" \
-                                       [list [list ld $abi_ldflags(n32)]]
-}
-
-run_dump_test "unaligned-lwpc-0" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "unaligned-lwpc-1" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "unaligned-ldpc-0" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "unaligned-ldpc-1" [list [list ld $abi_ldflags(o32)]]
+run_dump_test_n32 "unaligned-jalx-addend-0"
+run_dump_test_n32 "unaligned-jalx-addend-1"
+run_dump_test_n32 "unaligned-jalx-addend-2"
+run_dump_test_n32 "unaligned-jalx-addend-3"
+run_dump_test_n32 "unaligned-jalx-addend-mips16-0"
+run_dump_test_n32 "unaligned-jalx-addend-mips16-1"
+run_dump_test_n32 "unaligned-jalx-addend-micromips-0"
+run_dump_test_n32 "unaligned-jalx-addend-micromips-1"
+
+run_dump_test_o32 "unaligned-branch" noarch
+
+run_dump_test_n32 "unaligned-branch-2"
+run_dump_test_n32 "unaligned-branch-ignore-2"
+run_dump_test_n32 "unaligned-branch-r6-1"
+run_dump_test_n32 "unaligned-branch-ignore-r6-1"
+run_dump_test_n32 "unaligned-branch-r6-2" noarch
+run_dump_test_n32 "unaligned-branch-mips16"
+run_dump_test_n32 "unaligned-branch-ignore-mips16"
+run_dump_test_n32 "unaligned-branch-micromips"
+run_dump_test_n32 "unaligned-branch-ignore-micromips"
+run_dump_test_n32 "unaligned-jump"
+run_dump_test_n32 "unaligned-jump-mips16"
+run_dump_test_n32 "unaligned-jump-micromips"
+
+run_dump_test_o32 "unaligned-lwpc-0" noarch
+run_dump_test_o32 "unaligned-lwpc-1" noarch
+run_dump_test_o32 "unaligned-ldpc-0" noarch
+run_dump_test_o32 "unaligned-ldpc-1" noarch
 
 # Test multi-got link.  We only do this on GNU/Linux because it requires
 # the "traditional" emulations.
 if { $linux_gnu } {
-    run_dump_test "multi-got-1"
-    run_dump_test "multi-got-no-shared"
-    run_dump_test "multi-got-hidden-1"
-    run_dump_test "multi-got-hidden-2"
+    run_dump_test_o32 "multi-got-1"
+    run_dump_test_o32 "multi-got-no-shared"
+    run_dump_test_o32 "multi-got-hidden-1"
+    run_dump_test_o32 "multi-got-hidden-2"
 }
 
 # Test __gnu_local_gp accesses
 if { $linux_gnu } {
-    run_dump_test "no-shared-1-o32"
-    if { $has_newabi } {
-       run_dump_test "no-shared-1-n32"
-       run_dump_test "no-shared-1-n64"
-    }
+    run_dump_test_o32 "no-shared-1-o32"
+    run_dump_test_n32 "no-shared-1-n32"
+    run_dump_test_n64 "no-shared-1-n64" {{as -EB} {ld -EB}}
 }
 
 # Test PIE debug dynamic tags
 if { $linux_gnu } {
-    run_dump_test "pie-o32"
-    if { $has_newabi } {
-       run_dump_test "pie-n32"
-       run_dump_test "pie-n64"
-    }
+    run_dump_test_o32 "pie-o32"
+    run_dump_test_n32 "pie-n32"
+    run_dump_test_n64 "pie-n64"
 }
 
-if $has_newabi {
-    if { $embedded_elf } {
-       run_dump_test "elf-rel-got-n32-embed" \
-                                       [list [list ld $abi_ldflags(n32)]]
-       run_dump_test "elf-rel-xgot-n32-embed" \
-                                       [list [list ld $abi_ldflags(n32)]]
-    } else {
-       run_dump_test "elf-rel-got-n32" [list [list ld $abi_ldflags(n32)]]
-       run_dump_test "elf-rel-xgot-n32" [list [list ld $abi_ldflags(n32)]]
-    }
-    if { $irix } {
-       run_dump_test "elf-rel-got-n64-irix" \
-                                       [list [list ld $abi_ldflags(n64)]]
-       run_dump_test "elf-rel-xgot-n64-irix" \
-                                       [list [list ld $abi_ldflags(n64)]]
-    } elseif { $embedded_elf } {
-       run_dump_test "elf-rel-got-n64-embed" \
-                                       [list [list ld $abi_ldflags(n64)]]
-       run_dump_test "elf-rel-xgot-n64-embed" \
-                                       [list [list ld $abi_ldflags(n64)]]
-    } else {
-       run_dump_test "elf-rel-got-n64" [list [list ld $abi_ldflags(n64)]]
-       run_dump_test "elf-rel-xgot-n64" [list [list ld $abi_ldflags(n64)]]
-    }
-
-    run_dump_test "relax-jalr-n32"
-    run_dump_test "relax-jalr-n32-shared"
-    run_dump_test "relax-jalr-n64"
-    run_dump_test "relax-jalr-n64-shared"
+if { $embedded_elf } {
+    run_dump_test_n32 "elf-rel-got-n32-embed" {{as -EB} {ld -EB}}
+    run_dump_test_n32 "elf-rel-xgot-n32-embed" {{as -EB} {ld -EB}}
+} else {
+    run_dump_test_n32 "elf-rel-got-n32" {{as -EB} {ld -EB}}
+    run_dump_test_n32 "elf-rel-xgot-n32" {{as -EB} {ld -EB}}
 }
+if { $irix } {
+    run_dump_test_n64 "elf-rel-got-n64-irix"
+    run_dump_test_n64 "elf-rel-xgot-n64-irix"
+} elseif { $embedded_elf } {
+    run_dump_test_n64 "elf-rel-got-n64-embed" {{as -EB} {ld -EB}}
+    run_dump_test_n64 "elf-rel-xgot-n64-embed" {{as -EB} {ld -EB}}
+} else {
+    run_dump_test_n64 "elf-rel-got-n64" {{as -EB} {ld -EB}}
+    run_dump_test_n64 "elf-rel-xgot-n64" {{as -EB} {ld -EB}}
+}
+
+run_dump_test_n32 "relax-jalr-n32" {{as -EB} {ld -EB}}
+run_dump_test_n32 "relax-jalr-n32-shared" {{as -EB} {ld -EB}}
+run_dump_test_n64 "relax-jalr-n64" {{as -EB} {ld -EB}}
+run_dump_test_n64 "relax-jalr-n64-shared" {{as -EB} {ld -EB}}
 
 if { $linux_gnu } {
-    run_dump_test "rel32-o32"
-    if { $has_newabi } {
-       run_dump_test "rel32-n32"
-       run_dump_test "rel64"
-    }
+    run_dump_test_o32 "rel32-o32" {{as -EB} {ld -EB}}
+    run_dump_test_n32 "rel32-n32" {{as -EB} {ld -EB}}
+    run_dump_test_n64 "rel64" {{as -EB} {ld -EB}}
     # The first test checks that a mixed PIC/non-PIC relocatable link
     # will not introduce any stubs itself, but will flag PIC functions
     # for the final link.
@@ -485,7 +566,7 @@ if { $linux_gnu } {
          {readelf --symbols pic-and-nonpic-1-micromips.nd}}
         "pic-and-nonpic-1-micromips-static2.o"}
     }
-    run_dump_test "pic-and-nonpic-2"
+    run_dump_test_o32 "pic-and-nonpic-2"
     run_ld_link_tests {
        {"PIC and non-PIC test 3 (shared library)"
         "-melf32btsmip -shared -Tpic-and-nonpic-3a.ld" ""
@@ -506,7 +587,7 @@ if { $linux_gnu } {
          {readelf -d pic-and-nonpic-3b.ad}}
         "pic-and-nonpic-3b"}
     }
-    run_dump_test "pic-and-nonpic-3-error"
+    run_dump_test_o32 "pic-and-nonpic-3-error" {noarch {as -EB} {ld -EB}}
     run_ld_link_tests {
        {"PIC and non-PIC test 4 (shared library)"
         "-melf32btsmip -shared -Tpic-and-nonpic-3a.ld" ""
@@ -524,7 +605,7 @@ if { $linux_gnu } {
          {readelf -d pic-and-nonpic-4b.ad}}
         "pic-and-nonpic-4b"}
     }
-    run_dump_test "pic-and-nonpic-4-error"
+    run_dump_test_o32 "pic-and-nonpic-4-error" {noarch {as -EB} {ld -EB}}
     run_ld_link_tests {
        {"PIC and non-PIC test 5 (executable)"
         "-melf32btsmip -Tpic-and-nonpic-5b.ld tmpdir/pic-and-nonpic-3a.so tmpdir/pic-and-nonpic-4a.so" ""
@@ -538,9 +619,14 @@ if { $linux_gnu } {
          {readelf -d pic-and-nonpic-5b.ad}}
         "pic-and-nonpic-5b"}
     }
-    set abis { o32 -32 elf32btsmip }
-    if $has_newabi {
+    set abis {}
+    if $has_abi(o32) {
+       lappend abis o32 -32 elf32btsmip
+    }
+    if $has_abi(n32) {
        lappend abis n32 -n32 elf32btsmipn32
+    }
+    if $has_abi(n64) {
        lappend abis n64 -64 elf64btsmip
     }
     foreach { abi flag emul } $abis {
@@ -604,28 +690,20 @@ if { $linux_gnu } {
     }
 }
 
-if { $embedded_elf } {
-    run_dump_test "region1"
-}
+run_dump_test_eabi "region1"
 
-if $embedded_elf {
-    # This could work on other targets too, but would need the appropriate
-    # ld -m switch.
-    run_dump_test "reloc-1-rel"
-}
-if $has_newabi {
-    run_dump_test "reloc-1-n32" [list [list ld $abi_ldflags(n32)]]
-    run_dump_test "reloc-1-n64" [list [list ld $abi_ldflags(n64)]]
-}
-run_dump_test "reloc-2"
+run_dump_test_o32 "reloc-1-rel"
+run_dump_test_n32 "reloc-1-n32"
+run_dump_test_n64 "reloc-1-n64"
+run_dump_test_o32 "reloc-2" [list [list objdump [expr { [istarget *el-*-*] \
+                                                       ? "--endian=little" \
+                                                       : "--endian=big" }]]]
 run_dump_test "reloc-merge-lo16"
 run_dump_test "reloc-3"
-if {$has_newabi} {
-    run_dump_test "reloc-3-n32"
-}
+run_dump_test_n32 "reloc-3-n32" noarch
 run_dump_test "reloc-4"
 run_dump_test "reloc-5"
-if { $has_newabi && [check_shared_lib_support] } {
+if { $has_abi(n32) && [check_shared_lib_support] } {
     run_ld_link_tests [list \
        [list \
            "reloc test 6a" \
@@ -643,25 +721,25 @@ if { $has_newabi && [check_shared_lib_support] } {
            "reloc-6b"]]
 }
 
-run_dump_test "reloc-local-overflow" [list [list ld $abi_ldflags(o32)]]
-run_ld_link_tests [list \
-    [list \
-       "MIPS link ELF o32 PIC comdat GOT16/LO16 relocation pairing" \
-       "$abi_ldflags(o32) -e bar" "" "$abi_asflags(o32) -mno-pdr" \
-       "../../../gas/testsuite/gas/mips/comdat-reloc.s" \
-       {} \
-       "comdat-reloc"]]
-
-if {$has_newabi && $linux_gnu} {
-    run_dump_test "eh-frame1-n32"
-    run_dump_test "eh-frame1-n64"
-    run_dump_test "eh-frame2-n32"
-    run_dump_test "eh-frame2-n64"
+run_dump_test_o32 "reloc-local-overflow"
+if { $has_abi(o32) } {
+    run_ld_link_tests [list \
+       [list \
+           "MIPS link ELF o32 PIC comdat GOT16/LO16 relocation pairing" \
+           "$abi_ldflags(o32) -e bar" "" "$abi_asflags(o32) -mno-pdr" \
+           "../../../gas/testsuite/gas/mips/comdat-reloc.s" \
+           {} \
+           "comdat-reloc"]]
 }
-if {$embedded_elf} {
-    run_dump_test "eh-frame3"
-    run_dump_test "eh-frame4"
+
+if {$linux_gnu} {
+    run_dump_test_n32 "eh-frame1-n32"
+    run_dump_test_n64 "eh-frame1-n64"
+    run_dump_test_n32 "eh-frame2-n32"
+    run_dump_test_n64 "eh-frame2-n64"
 }
+run_dump_test_eabi "eh-frame3"
+run_dump_test_eabi "eh-frame4"
 if {$linux_gnu} {
     set eh_frame5_test {
        {"MIPS eh-frame 5"
@@ -689,57 +767,46 @@ if {$linux_gnu} {
 run_dump_test "jaloverflow"
 run_dump_test "jaloverflow-2"
 
-run_dump_test "jal-global-overflow-0" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "jal-global-overflow-1" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "jal-local-overflow-0" [list [list ld $abi_ldflags(o32)]]
-run_dump_test "jal-local-overflow-1" [list [list ld $abi_ldflags(o32)]]
-
-run_dump_test "undefweak-overflow" [list [list as $abi_asflags(o32)] \
-                                        [list ld $abi_ldflags(o32)]]
-
-if {$has_newabi} {
-    run_dump_test "undefweak-overflow" [list [list name (n32)] \
-                                            [list as $abi_asflags(n32)] \
-                                            [list ld $abi_ldflags(n32)]]
-    run_dump_test "undefweak-overflow" [list [list name (n64)] \
-                                            [list as $abi_asflags(n64)] \
-                                            [list ld $abi_ldflags(n64)]]
-}
+run_dump_test_o32 "jal-global-overflow-0"
+run_dump_test_o32 "jal-global-overflow-1"
+run_dump_test_o32 "jal-local-overflow-0"
+run_dump_test_o32 "jal-local-overflow-1"
 
-if {$has_newabi} {
-    run_dump_test "jalbal" [list [list ld $abi_ldflags(n32)]]
-}
+run_dump_test_o32 "undefweak-overflow"
+
+run_dump_test_n32 "undefweak-overflow" [list [list name (n32)]]
+run_dump_test_n64 "undefweak-overflow" [list [list name (n64)]]
+
+run_dump_test_n32 "jalbal" noarch
 
 run_dump_test "mode-change-error-1"
 
-run_dump_test "mips16-hilo"
-if {$has_newabi} {
-    run_dump_test "mips16-hilo-n32"
-}
+run_dump_test_o32 "mips16-hilo"
+run_dump_test_n32 "mips16-hilo-n32"
 
 if { $linux_gnu } {
-    if { $has_newabi } {
-       run_dump_test "textrel-1"
-    }
+    run_dump_test_n32 "textrel-1"
     run_dump_test "got-page-1"
-    if $has_newabi {
-       run_dump_test "got-page-2"
-       run_dump_test "dyn-sec64"
-    }
+    run_dump_test_n32 "got-page-2"
+    run_dump_test_n64 "dyn-sec64" noarch
     run_dump_test "got-page-3"
-    run_ld_link_tests [subst {
-       {"GOT page 4 (one file)" "-shared $abi_ldflags(o32) -T got-page-1.ld"
-        "" "$abi_asflags(o32) -mips2" {got-page-4b.s}
-        {{objdump -dr got-page-4a.d}
-         {readelf -A got-page-4a.got}}
-        "got-page-4a.so"}
-       {"GOT page 4 (two files)" "-shared $abi_ldflags(o32) -T got-page-1.ld"
-        "" "$abi_asflags(o32) -mips2" {got-page-4a.s got-page-4b.s}
-        {{objdump -dr got-page-4b.d}
-         {readelf -A got-page-4b.got}}
-        "got-page-4b.so"}
-    }]
-    if $has_newabi {
+    if $has_abi(o32) {
+       run_ld_link_tests [subst {
+           {"GOT page 4 (one file)"
+            "-shared $abi_ldflags(o32) -T got-page-1.ld"
+            "" "$abi_asflags(o32) -mips2" {got-page-4b.s}
+            {{objdump -dr got-page-4a.d}
+             {readelf -A got-page-4a.got}}
+            "got-page-4a.so"}
+           {"GOT page 4 (two files)"
+            "-shared $abi_ldflags(o32) -T got-page-1.ld"
+            "" "$abi_asflags(o32) -mips2" {got-page-4a.s got-page-4b.s}
+            {{objdump -dr got-page-4b.d}
+             {readelf -A got-page-4b.got}}
+            "got-page-4b.so"}
+       }]
+    }
+    if $has_abi(n32) {
         run_ld_link_tests [subst {
            {"GOT page 5" "-shared $abi_ldflags(n32) -T got-page-1.ld"
             "" "$abi_asflags(n32)" {got-page-5.s}
@@ -768,21 +835,17 @@ if { $linux_gnu } {
        }]
     }
     run_dump_test "got-dump-1"
-    if $has_newabi {
-       run_dump_test "got-dump-2"
-    }
+    run_dump_test_n64 "got-dump-2" noarch
     run_dump_test "reloc-estimate-1"
 }
 
-if $has_newabi {
-    run_dump_test "emit-relocs-1"
-}
+run_dump_test_n32 "emit-relocs-1" {{as -EB} {ld -EB}}
 
 run_dump_test "hash1a"
 run_dump_test "hash1b"
 run_dump_test "hash1c"
 
-if { $linux_gnu } {
+if { $linux_gnu && $has_abi(o32) } {
     # The number of symbols that are always included in the symbol table
     # for these tests.
     #     the null symbol entry
@@ -934,7 +997,7 @@ set mips_tls_tests {
      "tls-hidden4.so"}
 }
 
-if { $linux_gnu } {
+if { $linux_gnu && $has_abi(o32) } {
     run_ld_link_tests $mips_tls_tests
 }
 
@@ -946,7 +1009,9 @@ set mips16_call_global_test [list \
         {{objdump -dr mips16-call-global.d}} \
         "mips16-call-global"]]
 
-run_ld_link_tests $mips16_call_global_test
+if { $has_abi(o32) } {
+    run_ld_link_tests $mips16_call_global_test
+}
 
 set mips16_intermix_test [list \
     [list "Intermixing mips32 and mips16 functions" \
@@ -956,7 +1021,9 @@ set mips16_intermix_test [list \
         {{objdump -t mips16-intermix.d}} \
         "mips16-intermix"]]
 
-run_ld_link_tests $mips16_intermix_test
+if { $has_abi(o32) } {
+    run_ld_link_tests $mips16_intermix_test
+}
 
 run_dump_test "mips16-local-stubs-1"
 
@@ -968,18 +1035,18 @@ set mips16_fp_stub_test [list \
         {{readelf --debug-dump=frames mips16-fp-stub.d}} \
         "mips16-fp-stub"]]
 
-run_ld_link_tests $mips16_fp_stub_test
-
-set o32flagslist [list [list as $abi_asflags(o32)] [list ld $abi_ldflags(o32)]]
+if { $has_abi(o32) } {
+    run_ld_link_tests $mips16_fp_stub_test
+}
 
 foreach firstfpabi [list 0 1 2 3 4 5 6 7 ] {
   foreach secondfpabi [list 4 5 6 7 ] {
-    run_dump_test "attr-gnu-4-${firstfpabi}${secondfpabi}" $o32flagslist
+    run_dump_test_o32 "attr-gnu-4-${firstfpabi}${secondfpabi}"
   }
 }
 foreach firstfpabi [list 4 5 6 7 ] {
   foreach secondfpabi [list 0 1 2 3 8 9] {
-    run_dump_test "attr-gnu-4-${firstfpabi}${secondfpabi}" $o32flagslist
+    run_dump_test_o32 "attr-gnu-4-${firstfpabi}${secondfpabi}"
   }
 }
 foreach firstfpabi [list 0 1 2 3 ] {
@@ -1000,43 +1067,41 @@ run_dump_test "attr-gnu-8-20"
 run_dump_test "attr-gnu-8-21"
 run_dump_test "attr-gnu-8-22"
 
-run_dump_test "attr-gnu-4-0-ph" $o32flagslist
-run_dump_test "attr-gnu-4-1-ph" $o32flagslist
-run_dump_test "attr-gnu-4-2-ph" $o32flagslist
-run_dump_test "attr-gnu-4-3-ph" $o32flagslist
-run_dump_test "attr-gnu-4-4-ph" $o32flagslist
-run_dump_test "attr-gnu-4-5-ph" $o32flagslist
-run_dump_test "attr-gnu-4-6-ph" $o32flagslist
-run_dump_test "attr-gnu-4-7-ph" $o32flagslist
-
-if $has_newabi {
-  run_dump_test "attr-gnu-4-0-n32-ph"
-  run_dump_test "attr-gnu-4-1-n32-ph"
-  run_dump_test "attr-gnu-4-2-n32-ph"
-  run_dump_test "attr-gnu-4-3-n32-ph"
-  run_dump_test "attr-gnu-4-0-n64-ph"
-  run_dump_test "attr-gnu-4-1-n64-ph"
-  run_dump_test "attr-gnu-4-2-n64-ph"
-  run_dump_test "attr-gnu-4-3-n64-ph"
-}
-
-run_dump_test "abiflags-strip1-ph" $o32flagslist
-run_dump_test "abiflags-strip2-ph" $o32flagslist
-run_dump_test "abiflags-strip3-ph" $o32flagslist
-run_dump_test "abiflags-strip4-ph" $o32flagslist
-run_dump_test "abiflags-strip5-ph" $o32flagslist
-run_dump_test "abiflags-strip6-ph" $o32flagslist
-run_dump_test "abiflags-strip7-ph" $o32flagslist
-run_dump_test "abiflags-strip8-ph" $o32flagslist
-run_dump_test "abiflags-strip9-ph" $o32flagslist
-run_dump_test "abiflags-strip10-ph" $o32flagslist
+run_dump_test_o32 "attr-gnu-4-0-ph"
+run_dump_test_o32 "attr-gnu-4-1-ph"
+run_dump_test_o32 "attr-gnu-4-2-ph"
+run_dump_test_o32 "attr-gnu-4-3-ph"
+run_dump_test_o32 "attr-gnu-4-4-ph"
+run_dump_test_o32 "attr-gnu-4-5-ph"
+run_dump_test_o32 "attr-gnu-4-6-ph"
+run_dump_test_o32 "attr-gnu-4-7-ph"
+
+run_dump_test_n32 "attr-gnu-4-0-n32-ph" noarch
+run_dump_test_n32 "attr-gnu-4-1-n32-ph" noarch
+run_dump_test_n32 "attr-gnu-4-2-n32-ph" noarch
+run_dump_test_n32 "attr-gnu-4-3-n32-ph" noarch
+run_dump_test_n64 "attr-gnu-4-0-n64-ph" noarch
+run_dump_test_n64 "attr-gnu-4-1-n64-ph" noarch
+run_dump_test_n64 "attr-gnu-4-2-n64-ph" noarch
+run_dump_test_n64 "attr-gnu-4-3-n64-ph" noarch
+
+run_dump_test_o32 "abiflags-strip1-ph"
+run_dump_test_o32 "abiflags-strip2-ph"
+run_dump_test_o32 "abiflags-strip3-ph"
+run_dump_test_o32 "abiflags-strip4-ph"
+run_dump_test_o32 "abiflags-strip5-ph"
+run_dump_test_o32 "abiflags-strip6-ph"
+run_dump_test_o32 "abiflags-strip7-ph"
+run_dump_test_o32 "abiflags-strip8-ph"
+run_dump_test_o32 "abiflags-strip9-ph"
+run_dump_test_o32 "abiflags-strip10-ph"
 
 run_dump_test "nan-legacy"
 run_dump_test "nan-2008"
 run_dump_test "nan-mixed-1"
 run_dump_test "nan-mixed-2"
 
-if { $linux_gnu } {
+if { $linux_gnu && $has_abi(o32) } {
     run_ld_link_tests {
        {"GOT and versioning 1"
         "-shared -melf32btsmip --version-script got-vers-1.ver" ""
@@ -1053,15 +1118,25 @@ run_dump_test "undefined-warn"
 
 # Test the conversion from jr to b
 if { $linux_gnu } {
-    run_dump_test "jr-to-b-1"
-    run_dump_test "jr-to-b-2"
+    run_dump_test_o32 "jr-to-b-1" noarch
+    run_dump_test_o32 "jr-to-b-2" noarch
 }
 
 # MIPS16 and microMIPS interlinking test.
 run_dump_test "mips16-and-micromips"
 
+set abis {}
+if $has_abi(o32) {
+    lappend abis o32
+}
+if $has_abi(n32) {
+    lappend abis n32
+}
+if $has_abi(n64) {
+    lappend abis n64
+}
+
 # Export class call relocation tests.
-set abis [concat o32 [expr {$has_newabi ? "n32 n64" : ""}]]
 if [check_shared_lib_support] {
     foreach { abi } $abis {
        set loadaddr [string map \
@@ -1086,7 +1161,6 @@ if [check_shared_lib_support] {
 }
 
 # Magic __ehdr_start symbol tests.
-set abis [concat o32 [expr {$has_newabi ? "n32 n64" : ""}]]
 foreach { abi } $abis {
     set suff [string map {o32 o32 n32 new n64 new} $abi]
     run_ld_link_tests [list \
@@ -1107,7 +1181,6 @@ foreach { abi } $abis {
 }
 
 # R_MIPS_JALR reloc tests.
-set abis [concat o32 [expr {$has_newabi ? "n32 n64" : ""}]]
 foreach { abi } $abis {
     run_ld_link_tests [list \
        [list \
@@ -1127,11 +1200,11 @@ foreach { abi } $abis {
        [list \
            "MIPSr6 JALR reloc unaligned/cross-mode link test ($abi)" \
            "$abi_ldflags($abi) -T jalr3.ld" "" \
-           [string map \
-               [list -32 "-mips32r6 -32" \
-                   -n32 "-mips64r6 -n32" \
-                   -64 "-mips64r6 -64"] \
-               [regsub -- -march=from-abi $abi_asflags($abi) ""]] \
+           "[string map\
+               [list o32 -mips32r6\
+                   n32 -mips64r6\
+                   n64 -mips64r6] $abi ]\
+            [regsub -- {-march=[^[:blank:]]*} $abi_asflags($abi) {}]" \
            {../../../gas/testsuite/gas/mips/jalr4.s} \
            {{objdump {-d --prefix-addresses --show-raw-insn} jalr4-r6.dd}} \
            "jalr4-${abi}"]]
@@ -1186,7 +1259,7 @@ proc run_mips_plt_test { name abi filter micromips suffix {extra {}} } {
              $basename]]
 }
 
-if { $linux_gnu } {
+if { $linux_gnu && $has_abi(o32) } {
     build_mips_plt_lib o32
     run_mips_plt_test "o32 PLTs for standard encoding" o32 104 0 se
     run_mips_plt_test "o32 PLTs for standard branches" o32 16 0 branch
@@ -1210,21 +1283,21 @@ if { $linux_gnu } {
        o32 109 1 umips-got compressed-plt-1d.s
     run_mips_plt_test "o32 PLTs for mixed MIPS and microMIPS with .word" \
        o32 109 1 umips-word compressed-plt-1e.s
+}
 
-    if $has_newabi {
-       build_mips_plt_lib n32
-       run_mips_plt_test "n32 PLTs for mixed MIPS and MIPS16" \
-           n32 109 0 mips16
-       run_mips_plt_test "n32 PLTs for mixed MIPS and microMIPS" \
-           n32 109 1 umips
-    }
+if { $linux_gnu && $has_abi(n32) } {
+    build_mips_plt_lib n32
+    run_mips_plt_test "n32 PLTs for mixed MIPS and MIPS16" \
+       n32 109 0 mips16
+    run_mips_plt_test "n32 PLTs for mixed MIPS and microMIPS" \
+       n32 109 1 umips
 }
 
 # Verify graceful handling of n64 PLT 32-bit range overflows.  Given
 # that the alignment of `.got.plt' is 8 the highest usable positive
 # address is 0x7fff7ff8 and the lowest usable negative address is
 # 0xffffffff7fff8000.
-if { $linux_gnu } {
+if { $linux_gnu && $has_abi(n64) } {
     run_ld_link_tests [list \
        [list "Shared library for MIPS n64 PLT 32-bit range tests" \
              "-shared $abi_ldflags(n64)" "" \
@@ -1265,7 +1338,7 @@ if { $linux_gnu } {
 }
 
 # PR ld/19908 export class tests.
-if { $linux_gnu } {
+if { $linux_gnu && $has_abi(o32) } {
     run_ld_link_tests [list \
        [list "Shared library for MIPS export class symbol reference tests" \
              "$abi_ldflags(o32) -shared" "" \
@@ -1293,57 +1366,61 @@ if { $linux_gnu } {
 }
 
 # PR ld/21334 GOT relocation in static binary test.
-run_ld_link_tests [list \
-    [list \
-       "PR ld/21334 MIPS GOT16 relocation in static binary" \
-       "$abi_ldflags(o32) -e foo -T pr21334.ld" "" "$abi_asflags(o32)" \
-       {pr21334.s} \
-       {{objdump {-d --prefix-addresses} pr21334.dd} \
-        {readelf -A pr21334.gd}} \
-       "pr21334"]]
+if { $has_abi(o32) } {
+    run_ld_link_tests [list \
+       [list \
+           "PR ld/21334 MIPS GOT16 relocation in static binary" \
+           "$abi_ldflags(o32) -e foo -T pr21334.ld" "" "$abi_asflags(o32)" \
+           {pr21334.s} \
+           {{objdump {-d --prefix-addresses} pr21334.dd} \
+            {readelf -A pr21334.gd}} \
+           "pr21334"]]
+}
 
 # Check that the ISA level is consistently II for the LSI 4010.
-run_dump_test "lsi-4010-isa" [list [list ld $abi_ldflags(o32)]]
+run_dump_test_o32 "lsi-4010-isa" noarch
 
 # PIC branch relaxation with offset tests.  We need to use our version
 # of `prune_warnings' to get rid of GAS branch relaxation noise.
-rename prune_warnings mips_old_prune_warnings
-proc prune_warnings { msg } {
-    set msg1 "Assembler messages:"
-    set msg2 "Warning: relaxed out-of-range branch into a jump"
-    set msgx "(?:$msg1|$msg2)"
-    regsub -all "(^|\[\n\r\]*)\[^\n\r\]*: $msgx\[\n\r\]*" $msg "\\1" msg
-    return [mips_old_prune_warnings $msg]
+if { $has_abi(o32) } {
+    rename prune_warnings mips_old_prune_warnings
+    proc prune_warnings { msg } {
+       set msg1 "Assembler messages:"
+       set msg2 "Warning: relaxed out-of-range branch into a jump"
+       set msgx "(?:$msg1|$msg2)"
+       regsub -all "(^|\[\n\r\]*)\[^\n\r\]*: $msgx\[\n\r\]*" $msg "\\1" msg
+       return [mips_old_prune_warnings $msg]
+    }
+    run_ld_link_tests [list \
+       [list \
+           "MIPS link PIC branch relaxation with offset" \
+           "$abi_ldflags(o32) -shared -T relax-offset.ld" "" \
+           "$abi_asflags(o32) -relax-branch -mips2" \
+           {../../../gas/testsuite/gas/mips/relax-offset.s} \
+           {{objdump \
+             {-d --prefix-addresses --show-raw-insn} \
+             relax-offset.dd} \
+            {readelf -A relax-offset.gd}} \
+           "relax-offset"] \
+       [list \
+           "microMIPS link PIC branch relaxation with offset" \
+           "$abi_ldflags(o32) -shared -T relax-offset.ld" "" \
+           "$abi_asflags(o32) -relax-branch -mmicromips" \
+           {../../../gas/testsuite/gas/mips/relax-offset.s} \
+           {{objdump \
+             {-d --prefix-addresses --show-raw-insn} \
+             relax-offset-umips.dd} \
+            {readelf -A relax-offset-umips.gd}} \
+           "relax-offset-umips"]]
+    rename prune_warnings ""
+    rename mips_old_prune_warnings prune_warnings
 }
-run_ld_link_tests [list \
-    [list \
-       "MIPS link PIC branch relaxation with offset" \
-       "$abi_ldflags(o32) -shared -T relax-offset.ld" "" \
-       "$abi_asflags(o32) -relax-branch -mips2" \
-       {../../../gas/testsuite/gas/mips/relax-offset.s} \
-       {{objdump \
-         {-d --prefix-addresses --show-raw-insn} \
-         relax-offset.dd} \
-        {readelf -A relax-offset.gd}} \
-       "relax-offset"] \
-    [list \
-       "microMIPS link PIC branch relaxation with offset" \
-       "$abi_ldflags(o32) -shared -T relax-offset.ld" "" \
-       "$abi_asflags(o32) -relax-branch -mmicromips" \
-       {../../../gas/testsuite/gas/mips/relax-offset.s} \
-       {{objdump \
-         {-d --prefix-addresses --show-raw-insn} \
-         relax-offset-umips.dd} \
-        {readelf -A relax-offset-umips.gd}} \
-       "relax-offset-umips"]]
-rename prune_warnings ""
-rename mips_old_prune_warnings prune_warnings
 
 # Verify that we can link ELF input into the `binary' output format.
 run_dump_test "binary"
 
 # Verify special section processing.
-if $has_elf32 {
+if { $has_abi(o32) || $has_abi(n32) } {
     run_dump_test "reginfo-0"
     run_dump_test "reginfo-0r"
     run_dump_test "reginfo-1"
@@ -1359,5 +1436,4 @@ run_dump_test "mips-abiflags-2"
 run_dump_test "mips-abiflags-2r"
 
 # Test that _gp_disp symbol is not present in symbol tables.
-run_dump_test "gp-disp-sym" [list [list as $abi_asflags(o32)] \
-                                 [list ld $abi_ldflags(o32)]]
+run_dump_test_o32 "gp-disp-sym"
index 95287334a2295af92daf925219620d96ca5ecf63..401d5418bd864d8dbb8d6744dbead07b0634008b 100644 (file)
@@ -1,8 +1,7 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16 link branch 2
 #source: ../../../gas/testsuite/gas/mips/mips16-branch-reloc-2.s
-#as: -EB -32
-#ld: -EB -Ttext 0x1c000000 -e bar
+#ld: -Ttext 0x1c000000 -e bar
 
 .*: +file format .*mips.*
 
index 88918c1a93d87a17c3197df317e11b7161ec6a46..8c00114745f5e9229eae9ab3180cc31af3b89717 100644 (file)
@@ -2,8 +2,7 @@
 #name: MIPS16 link branch 3
 #source: mips16-branch.s
 #source: ../../../gas/testsuite/gas/mips/mips16-branch-reloc-3.s
-#as: -EB -32
-#ld: -EB -Ttext 0x1c000000 -e bar
+#ld: -Ttext 0x1c000000 -e bar
 
 .*: +file format .*mips.*
 
index 9e0aa5f44ed752c65ac740e720ef71e7d1e9c2e1..3548bc2119b8b63fdafb298104a4fbbd6da91d6d 100644 (file)
@@ -1,6 +1,5 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16 link branch to absolute expression 1
 #source: ../../../gas/testsuite/gas/mips/mips16-branch-absolute-1.s
-#as: -EB -32
-#ld: -EB -Ttext 0 -e foo
+#ld: -Ttext 0 -e foo
 #dump: mips16-branch-absolute.d
index 5e7e6f9905d4a98e26122410056e33c61c28a976..ff61a60c269b86ceff419e5e1b2c8b26b10413f0 100644 (file)
@@ -1,6 +1,5 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16 link branch to absolute expression 2
 #source: ../../../gas/testsuite/gas/mips/mips16-branch-absolute-2.s
-#as: -EB -32
-#ld: -EB -Ttext 0 -e foo
+#ld: -Ttext 0 -e foo
 #dump: mips16-branch-absolute.d
index 40f6ccbb9619f111a6ee1811c5c5de2b65f91b29..83443bae1d94b2c292c7f8f88d6c27dec1fa0a91 100644 (file)
@@ -1,6 +1,5 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16 link branch to absolute expression with addend 1
 #source: ../../../gas/testsuite/gas/mips/mips16-branch-absolute-addend-1.s
-#as: -EB -32
-#ld: -EB -Ttext 0x12340000 -e foo
+#ld: -Ttext 0x12340000 -e foo
 #dump: mips16-branch-absolute-addend.d
index 8e833d8d0dc08bba306fef0ce053fc540d665c25..1b49953c58de18c09c4cd176bf0a7e3a6f978df8 100644 (file)
@@ -1,6 +1,5 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16 link branch to absolute expression with addend 1 (n32)
 #source: ../../../gas/testsuite/gas/mips/mips16-branch-absolute-addend-1.s
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x12340000 -e foo
+#ld: -Ttext 0x12340000 -e foo
 #dump: mips16-branch-absolute-addend.d
index 69c37c15a392bec49bfb5d3bbceac025bb258942..913fbc195151364b72a6d3ddee1b6dfe1872386e 100644 (file)
@@ -1,6 +1,5 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16 link branch to absolute expression with addend (n32)
 #source: ../../../gas/testsuite/gas/mips/mips16-branch-absolute-addend.s
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x12340000 -e foo
+#ld: -Ttext 0x12340000 -e foo
 #dump: mips16-branch-absolute-addend.d
index 094b2d0515d908bfd16e696c9c7c1ba03802cff3..cdf11b61d368663d390ce63d93cce15df9fec4dc 100644 (file)
@@ -1,6 +1,5 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16 link branch to absolute expression with addend 1 (n64)
 #source: ../../../gas/testsuite/gas/mips/mips16-branch-absolute-addend-1.s
-#as: -EB -64 -march=from-abi
-#ld: -EB -Ttext 0x12340000 -e foo
+#ld: -Ttext 0x12340000 -e foo
 #dump: mips16-branch-absolute-addend.d
index d6047b96ea4f5b53a19fa4e18fdc7def459a3788..b779f0fe4613aae16d17dea64a71443dcb1b4cce 100644 (file)
@@ -1,6 +1,5 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16 link branch to absolute expression with addend (n64)
 #source: ../../../gas/testsuite/gas/mips/mips16-branch-absolute-addend.s
-#as: -EB -64 -march=from-abi
-#ld: -EB -Ttext 0x12340000 -e foo
+#ld: -Ttext 0x12340000 -e foo
 #dump: mips16-branch-absolute-addend.d
index 2427b9a9ac6e675acfe71ba1d8670263106465ba..867359ff663bd235763f4c98d21e9856f6f96776 100644 (file)
@@ -1,8 +1,7 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16 link branch to absolute expression with addend
 #source: ../../../gas/testsuite/gas/mips/mips16-branch-absolute-addend.s
-#as: -EB -32
-#ld: -EB -Ttext 0x12340000 -e foo
+#ld: -Ttext 0x12340000 -e foo
 
 .*: +file format .*mips.*
 
index 587e79a03ae310b01bc2efd9c511608ba31037bf..d709c6932fab9be7907f7dc383980d90048c425f 100644 (file)
@@ -1,6 +1,5 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16 link branch to absolute expression 1 (n32)
 #source: ../../../gas/testsuite/gas/mips/mips16-branch-absolute-1.s
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0 -e foo
+#ld: -Ttext 0 -e foo
 #dump: mips16-branch-absolute.d
index 86c98c3c2d537c03b191eba853c63e9b1d5e1160..711f65b3a392ea6e137c552e606cd9b496bc35e5 100644 (file)
@@ -1,6 +1,5 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16 link branch to absolute expression 2 (n32)
 #source: ../../../gas/testsuite/gas/mips/mips16-branch-absolute-2.s
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0 -e foo
+#ld: -Ttext 0 -e foo
 #dump: mips16-branch-absolute.d
index 7bff19876895682eb51591d21108da8d9100ef16..bdb770f931a8afa1c00b55c52e5a968823c8a7df 100644 (file)
@@ -1,6 +1,5 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16 link branch to absolute expression (n32)
 #source: ../../../gas/testsuite/gas/mips/mips16-branch-absolute.s
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0 -e foo
+#ld: -Ttext 0 -e foo
 #dump: mips16-branch-absolute.d
index dc067f82cb0348a3bcb3ec34a27de77edf7d45b7..3accde060f80c5c53632f4061c5cb5bc3f75cb7f 100644 (file)
@@ -1,6 +1,5 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16 link branch to absolute expression 1 (n64)
 #source: ../../../gas/testsuite/gas/mips/mips16-branch-absolute-1.s
-#as: -EB -64 -march=from-abi
-#ld: -EB -Ttext 0 -e foo
+#ld: -Ttext 0 -e foo
 #dump: mips16-branch-absolute.d
index 1a6ba3d32ad6435b6f3ec8f48b7e82046e38ac87..e00a536d3d8b4362bb085580ad7798274569f087 100644 (file)
@@ -1,6 +1,5 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16 link branch to absolute expression 2 (n64)
 #source: ../../../gas/testsuite/gas/mips/mips16-branch-absolute-2.s
-#as: -EB -64 -march=from-abi
-#ld: -EB -Ttext 0 -e foo
+#ld: -Ttext 0 -e foo
 #dump: mips16-branch-absolute.d
index 6edb58d04c638a3bd00eec73126d08eaa779980b..c4b72367675996ecb22e95c86f78f9609a064c6d 100644 (file)
@@ -1,6 +1,5 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16 link branch to absolute expression (n64)
 #source: ../../../gas/testsuite/gas/mips/mips16-branch-absolute.s
-#as: -EB -64 -march=from-abi
-#ld: -EB -Ttext 0 -e foo
+#ld: -Ttext 0 -e foo
 #dump: mips16-branch-absolute.d
index eac08fab42af2655d484660a376afbf669c23a15..2373a77bdd8181188fe1dca58833f9bd66b8b14f 100644 (file)
@@ -1,8 +1,7 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16 link branch to absolute expression
 #source: ../../../gas/testsuite/gas/mips/mips16-branch-absolute.s
-#as: -EB -32
-#ld: -EB -Ttext 0 -e foo
+#ld: -Ttext 0 -e foo
 
 .*: +file format .*mips.*
 
index c724bddbe2411eb1a8c3547674f2687e6d755b8b..d6e913d18831a3c1fcf8854f9ca8fd49f93638b9 100644 (file)
@@ -1,8 +1,7 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16 link branch addend 2
 #source: ../../../gas/testsuite/gas/mips/mips16-branch-addend-2.s
-#as: -EB -32
-#ld: -EB -Ttext 0x1c000000 -e bar
+#ld: -Ttext 0x1c000000 -e bar
 
 .*: +file format .*mips.*
 
index 84bccc781743959babe020e088baa65eec87ae91..b66ddef8dc2b93c35c92a357cf1eb7e398dc2276 100644 (file)
@@ -2,8 +2,7 @@
 #name: MIPS16 link branch addend 3
 #source: mips16-branch.s
 #source: ../../../gas/testsuite/gas/mips/mips16-branch-addend-3.s
-#as: -EB -32
-#ld: -EB -Ttext 0x1c000000 -e bar
+#ld: -Ttext 0x1c000000 -e bar
 
 .*: +file format .*mips.*
 
index 28c2b61d89b379ea3200fbe48f490b56635a79b8..8d70b356189026ead4762ff6ff076ecdb656d21d 100644 (file)
@@ -1,9 +1,8 @@
 #name: R_MIPS16_HI16 and R_MIPS16_LO16 relocs n32
 #source: ../../../gas/testsuite/gas/mips/mips16-hilo.s
 #source: mips16-hilo.s
-#as: -march=mips64 -mabi=n32 -EB
 #objdump: -mmips:16 --prefix-addresses -tdr --show-raw-insn
-#ld: -Tmips16-hilo.ld -e 0x500000 -N -melf32btsmipn32
+#ld: -Tmips16-hilo.ld -e 0x500000 -N
 
 .*:     file format elf.*mips.*
 
index b1bfab618325126338414c936c4ff1f676fa07bb..99f64e43bfa19f4b0e3f6fd8198500d61ae90265 100644 (file)
@@ -1,8 +1,7 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16 link PC-relative operations 0
 #source: ../../../gas/testsuite/gas/mips/mips16-pcrel-0.s
-#as: -EB -32
-#ld: -EB -Ttext 0 -e 0
+#ld: -Ttext 0 -e 0
 
 .*: +file format .*mips.*
 
index 0fe3a2b1d84d19a2272ac52c02e709fe2367c3b5..d10f535d08332fb47bbea02a4991e38628a26878 100644 (file)
@@ -1,8 +1,8 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16 link PC-relative operations 1
 #source: ../../../gas/testsuite/gas/mips/mips16-pcrel-1.s
-#as: -EB -32 -mips3
-#ld: -EB -Ttext 0 -e 0
+#as: -mips3
+#ld: -Ttext 0 -e 0
 
 .*: +file format .*mips.*
 
index d04d035be00f0d87928eea36db9ea82cb58ab083..c5e26f1c533a21053bf98b36f6a6ec7331fff240 100644 (file)
@@ -1,8 +1,7 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16 link PC-relative relocation with addend 2
 #source: ../../../gas/testsuite/gas/mips/mips16-pcrel-addend-2.s
-#as: -EB -32
-#ld: -EB -Ttext 0x43210000 -e 0
+#ld: -Ttext 0x43210000 -e 0
 
 .*: +file format .*mips.*
 
index 134f107ab6791e4c5b55f69c1534a3bbd7ca391e..e87fe1c09f1678d0f99ca9aa04d836d2df64355d 100644 (file)
@@ -1,8 +1,8 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16 link PC-relative relocation with addend 6
 #source: ../../../gas/testsuite/gas/mips/mips16-pcrel-addend-6.s
-#as: -EB -32 -mips3
-#ld: -EB -Ttext 0x43210000 -e 0
+#as: -mips3
+#ld: -Ttext 0x43210000 -e 0
 
 .*: +file format .*mips.*
 
index 70102a1645e8e67b4dfa9b1d6fdc3cb0db94639d..d75fb98dbc99fbc594656d985c39c90f9149c2ee 100644 (file)
@@ -1,6 +1,5 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16 link PC-relative operations 0 (n32)
 #source: ../../../gas/testsuite/gas/mips/mips16-pcrel-0.s
-#as: -EB -n32 -mips3
-#ld: -EB -Ttext 0 -e 0
+#ld: -Ttext 0 -e 0
 #dump: mips16-pcrel-0.d
index f456fda7111c65a51500c7e403d05af8c05c917a..5bbc4d156fe4ff5e1d907d678dcbb3aa887ea95f 100644 (file)
@@ -1,6 +1,5 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16 link PC-relative operations 1 (n32)
 #source: ../../../gas/testsuite/gas/mips/mips16-pcrel-1.s
-#as: -EB -n32 -mips3
-#ld: -EB -Ttext 0 -e 0
+#ld: -Ttext 0 -e 0
 #dump: mips16-pcrel-1.d
index aad68773af995558033e093fd59deed81433e783..1ee0550b7da100e8abb1381a20b418656a16cba6 100644 (file)
@@ -1,6 +1,6 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16 link PC-relative operations 0 (n64, sym32)
 #source: ../../../gas/testsuite/gas/mips/mips16-pcrel-0.s
-#as: -EB -64 -msym32 -mips3
-#ld: -EB -Ttext 0 -e 0
+#as: -msym32
+#ld: -Ttext 0 -e 0
 #dump: mips16-pcrel-0.d
index 9a1a5de0d5c2b04f92d03ce3a99b25440c081981..6b6eb1009a2a5dd7e5e6d65ec96c06355dea34c2 100644 (file)
@@ -1,6 +1,6 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16 link PC-relative operations 1 (n64, sym32)
 #source: ../../../gas/testsuite/gas/mips/mips16-pcrel-1.s
-#as: -EB -64 -msym32 -mips3
-#ld: -EB -Ttext 0 -e 0
+#as: -msym32
+#ld: -Ttext 0 -e 0
 #dump: mips16-pcrel-1.d
index a6add470ce804e2181b7d548cb41e161a9d51223..c962647651c4cafce33062032172fde35e2667c8 100644 (file)
@@ -1,8 +1,8 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16e2 link PC-relative operations 0
 #source: ../../../gas/testsuite/gas/mips/mips16-pcrel-0.s
-#as: -EB -32 -mips32r2 -mmips16e2
-#ld: -EB -Ttext 0 -e 0
+#as: -mips32r2 -mmips16e2
+#ld: -Ttext 0 -e 0
 
 .*: +file format .*mips.*
 
index 487ce16bcb3de83e4d313465115d97a806eaeb86..acdf46c552cebcc9ba6ea2e08001812c5343aa03 100644 (file)
@@ -1,8 +1,8 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16e2 link PC-relative operations 1
 #source: ../../../gas/testsuite/gas/mips/mips16-pcrel-1.s
-#as: -EB -32 -mips64r2 -mmips16e2
-#ld: -EB -Ttext 0 -e 0
+#as: -mips64r2 -mmips16e2
+#ld: -Ttext 0 -e 0
 
 .*: +file format .*mips.*
 
index 1b0cb37e5d4bdd82b039a69ea439968746e9eede..f6180f666e381e8fbf780b81816fb3137df0082d 100644 (file)
@@ -1,8 +1,8 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16e2 link PC-relative relocation with addend 2
 #source: ../../../gas/testsuite/gas/mips/mips16-pcrel-addend-2.s
-#as: -EB -32 -mips32r2 -mmips16e2
-#ld: -EB -Ttext 0x43210000 -e 0
+#as: -mips32r2 -mmips16e2
+#ld: -Ttext 0x43210000 -e 0
 
 .*: +file format .*mips.*
 
index b680a5f17f245c4a5a8878fcc5843e8a9f06cd53..a006c7f064f243262a7e2e90f9548da188b38cc7 100644 (file)
@@ -1,8 +1,8 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16e2 link PC-relative relocation with addend 6
 #source: ../../../gas/testsuite/gas/mips/mips16-pcrel-addend-6.s
-#as: -EB -32 -mips64r2 -mmips16e2
-#ld: -EB -Ttext 0x43210000 -e 0
+#as: -mips64r2 -mmips16e2
+#ld: -Ttext 0x43210000 -e 0
 
 .*: +file format .*mips.*
 
index d7d5e9dfc496b10f15db0f2daa9804dcabe5388c..a173181b46583e7884ee398560dcf7ae1ac8231f 100644 (file)
@@ -1,6 +1,6 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16e2 link PC-relative operations 0 (n32)
 #source: ../../../gas/testsuite/gas/mips/mips16-pcrel-0.s
-#as: -EB -n32 -mips64r2 -mmips16e2
-#ld: -EB -Ttext 0 -e 0
+#as: -mips64r2 -mmips16e2
+#ld: -Ttext 0 -e 0
 #dump: mips16e2-pcrel-0.d
index 92bd3baa8a2a7a22f55eb17f5d8c11cf8c601dbc..01c6440c28689594cb9757d5924504c163d6892a 100644 (file)
@@ -1,6 +1,6 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16e2 link PC-relative operations 1 (n32)
 #source: ../../../gas/testsuite/gas/mips/mips16-pcrel-1.s
-#as: -EB -n32 -mips64r2 -mmips16e2
-#ld: -EB -Ttext 0 -e 0
+#as: -mips64r2 -mmips16e2
+#ld: -Ttext 0 -e 0
 #dump: mips16e2-pcrel-1.d
index 5ad20016210648fb89f5683d35328c052aae2273..3532f4ad6650eed7772ed9988331f9155c7fcb5a 100644 (file)
@@ -1,6 +1,6 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16e2 link PC-relative operations 0 (n64, sym32)
 #source: ../../../gas/testsuite/gas/mips/mips16-pcrel-0.s
-#as: -EB -64 -msym32 -mips64r2 -mmips16e2
-#ld: -EB -Ttext 0 -e 0
+#as: -msym32 -mips64r2 -mmips16e2
+#ld: -Ttext 0 -e 0
 #dump: mips16e2-pcrel-0.d
index ea33b8efb161e687424dff2333efeb7417f0bb71..82a5f4e98c19864d8e32431606a63c3b10ae71e4 100644 (file)
@@ -1,6 +1,6 @@
 #objdump: -dr --prefix-addresses --show-raw-insn
 #name: MIPS16e2 link PC-relative operations 1 (n64, sym32)
 #source: ../../../gas/testsuite/gas/mips/mips16-pcrel-1.s
-#as: -EB -64 -msym32 -mips64r2 -mmips16e2
-#ld: -EB -Ttext 0 -e 0
+#as: -msym32 -mips64r2 -mmips16e2
+#ld: -Ttext 0 -e 0
 #dump: mips16e2-pcrel-1.d
index 810a263a8ceef50df8c246ea4ec37907ad362657..1b0f304f79d41179d5bb7ec7b69096a85ee00f29 100644 (file)
@@ -1,8 +1,8 @@
 #name: MIPS multi-got-1
-#as: -EB -32 -KPIC
+#as: -KPIC
 #source: multi-got-1-1.s
 #source: multi-got-1-2.s
-#ld: -melf32btsmip -shared
+#ld: -shared
 #readelf: -d -r
 
 Dynamic section at offset .* contains 17 entries:
index 46bf51982b0f73973915f65bbb5dbcf1c620c290..ed35ac9802a231502b8425e58ee338cfffed6882 100644 (file)
@@ -1,8 +1,8 @@
 #name: MIPS multi-got-hidden-1
-#as: -EB -32 -KPIC
+#as: -KPIC
 #source: multi-got-1-1.s
 #source: multi-got-1-2.s
 #source: multi-got-hidden-1.s
-#ld: -melf32btsmip -e 0
+#ld: -e 0
 #objdump: -dr
 #pass
index e6173a0acb210f1fa7d46dec555d535e8279f4f8..5a64e5d810294da5fc170710830aa0f1a1e07db2 100644 (file)
@@ -1,7 +1,7 @@
 #name: MIPS multi-got-hidden-2
-#as: -EB -32 -KPIC
+#as: -KPIC
 #source: multi-got-1-1.s
 #source: multi-got-hidden-2.s
-#ld: -melf32btsmip -e 0
+#ld: -e 0
 #objdump: -dr
 #pass
index a3e1bb274310fe87453d0e4d376f9befc7a80178..88a4f6e7f3b5aa00c8f3eabd79823851ed0eaecb 100644 (file)
@@ -1,8 +1,8 @@
 #name: MIPS multi-got-no-shared
-#as: -EB -32 -KPIC -mno-shared
+#as: -KPIC -mno-shared
 #source: multi-got-no-shared-1.s
 #source: multi-got-no-shared-2.s
-#ld: -melf32btsmip --entry func1
+#ld: --entry func1
 #objdump: -D -j .text --prefix-addresses --show-raw-insn
 
 .*: +file format.*
index 6a550088683b5e28909f3d64fcfbb7fc239fdb1a..5574360c7ea6ab44b0202f9300a0c36f4b88bc06 100644 (file)
@@ -1,6 +1,5 @@
-#as: -march=from-abi -mabi=n32 -EB
 #source: no-shared-1-o32.s
-#ld: -melf32btsmipn32 -T no-shared-1.ld
+#ld: -T no-shared-1.ld
 #objdump: -dr -j.text -j.data -j.got
 
 .*
index 5813b30e36310abe209c5b1362cfc81cccad3450..b5cd86e7285195251c4195c22c451143d513075c 100644 (file)
@@ -1,5 +1,4 @@
-#as: -march=from-abi -mabi=64 -EB
-#ld: -melf64btsmip -T no-shared-1.ld
+#ld: -T no-shared-1.ld
 #objdump: -dr -j.text -j.data -j.got
 
 .*
index 53bac9ef6c8e536516e11782eec19e9aecde13c5..fcb5f5db588bd35a5f464d0724ee041a390e561c 100644 (file)
@@ -1,5 +1,4 @@
-#as: -mabi=32 -EB
-#ld: -melf32btsmip -T no-shared-1.ld
+#ld: -T no-shared-1.ld
 #objdump: -dr -j.text -j.data -j.got
 
 .*
index da28cc30bd7ac876d14187dc3bc51b859298db7b..3baf22851a0b0e85826086210221a329c5de4221 100644 (file)
@@ -1,7 +1,6 @@
 #source: pic-and-nonpic-2a.s
 #source: pic-and-nonpic-2b.s
-#as: -32 -EB
-#ld: -melf32btsmip -Tpic-and-nonpic-1.ld
+#ld: -Tpic-and-nonpic-1.ld
 #objdump: -dr
 
 .*
index 975ffa787150fb99c332f57cf0e7284adb46654f..1bdafb750c66e90c1782bb91f075b6094643040b 100644 (file)
@@ -1,5 +1,5 @@
 #name: PIC and non-PIC test 3 (error)
 #source: pic-and-nonpic-3b.s
-#as: -EB -32 -mips2
-#ld: tmpdir/pic-and-nonpic-3a.so -melf32btsmip -znocopyreloc
+#as: -mips2
+#ld: tmpdir/pic-and-nonpic-3a.so -znocopyreloc
 #error: .*: non-dynamic relocations refer to dynamic symbol foo
index 7bc0c259af0c2ec2e9f09582125d549bd7231e4f..dee62d398077320d9a8723caaaeb6354200080c2 100644 (file)
@@ -1,5 +1,5 @@
 #name: PIC and non-PIC test 4 (error)
 #source: pic-and-nonpic-4b.s
-#as: -EB -32 -mips2
-#ld: tmpdir/pic-and-nonpic-4a.so -melf32btsmip -znocopyreloc
+#as: -mips2
+#ld: tmpdir/pic-and-nonpic-4a.so -znocopyreloc
 #error: .*: non-dynamic relocations refer to dynamic symbol obj1
index cd7d90523945895c71035f1474ad978371437009..c6772392005db352a5ebfdafacc744e1bd4b3841 100644 (file)
@@ -1,6 +1,5 @@
 #source: pie.s
-#as: -march=from-abi -mabi=n32 -EB
-#ld: -melf32btsmipn32 -pie
+#ld: -pie
 #readelf: -d
 
 Dynamic section at offset 0x180 contains 17 entries:
index 3a5f8c9b307d0edead83eaf8e74b1f9daadb9652..bf7c6b2272a23bd2c7ebe2d15f69c68a9309fd41 100644 (file)
@@ -1,6 +1,5 @@
 #source: pie.s
-#as: -march=from-abi -mabi=64 -EB
-#ld: -melf64btsmip -pie
+#ld: -pie
 #readelf: -d
 
 Dynamic section at offset 0x208 contains 17 entries:
index dc3165942ab65d9271d637b017d40a8fea5c8954..6d5b07267328f5146da4431b67bbe648dcf488f5 100644 (file)
@@ -1,6 +1,5 @@
 #source: pie.s
-#as: -mabi=32 -EB
-#ld: -melf32btsmip -pie
+#ld: -pie
 #readelf: -d
 
 Dynamic section at offset 0x178 contains 17 entries:
index d7bdbf09bb57036abff20cf434e8aefca7497a22..2f14a767754a6e9e0588474a6dc5dc3d42e3e710 100644 (file)
@@ -1,8 +1,8 @@
 #name: MIPS rel32 n32
 #source: rel32.s
-#as: -march=from-abi -KPIC -EB -n32
+#as: -KPIC
 #readelf: -x .text -r
-#ld: -shared -melf32btsmipn32
+#ld: -shared
 
 Relocation section '.rel.dyn' at offset .* contains 2 entries:
  Offset     Info    Type            Sym.Value  Sym. Name
index fb987886d31ba8c06f96692b97443f113f54adf9..c3ae8c6e2a5eb8dd4ca015f2529d80eedbb143b4 100644 (file)
@@ -1,8 +1,8 @@
 #name: MIPS rel32 o32
 #source: rel32.s
-#as: -KPIC -EB -32
+#as: -KPIC
 #readelf: -x .text -r
-#ld: -shared -melf32btsmip
+#ld: -shared
 
 Relocation section '.rel.dyn' at offset .* contains 2 entries:
  Offset     Info    Type            Sym.Value  Sym. Name
index be819e17d88c20feb7944956a4f34f723a93d515..07e5d6577c04c0011147fe101d1cee55a7101e95 100644 (file)
@@ -1,8 +1,8 @@
 #name: MIPS rel64 n64
 #source: rel64.s
-#as: -march=from-abi -KPIC -EB -64
+#as: -KPIC
 #readelf: -x .text -r
-#ld: -shared -melf64btsmip
+#ld: -shared
 
 Relocation section '.rel.dyn' at offset .* contains 2 entries:
   Offset          Info           Type           Sym. Value    Sym. Name
index b0ea9c0cf318a145f1ca2bafcd74ed7ed989d3b6..9a30136b4cdc1669c3c31906bd53ed0d2b887c5c 100644 (file)
@@ -1,8 +1,8 @@
 #name: MIPS relax-jalr n32
 #source: relax-jalr.s
-#as: -march=from-abi -KPIC -n32 -EB
+#as: -KPIC
 #objdump: --prefix-addresses -d --show-raw-insn
-#ld: -melf32btsmipn32
+#ld:
 
 .*:     file format elf.*mips.*
 
index e9f38e5576b4f0f39eef723b8e23f6b696c91b7b..2d3f0c7a34df185f37f008d5071b5c166ba92229 100644 (file)
@@ -1,5 +1,5 @@
-#source: reloc-1a.s -march=from-abi -mabi=n32 -EB
-#source: reloc-1b.s -march=from-abi -mabi=n32 -EB
+#source: reloc-1a.s
+#source: reloc-1b.s
 #ld: -r
 #readelf: --relocs
 
index b76f818822ad7c0c88ce3b9e4d92d41abd3978b5..7a1c4304a09422ea1f7e86f620b29f33907bdec4 100644 (file)
@@ -1,5 +1,5 @@
-#source: reloc-1a.s -march=from-abi -mabi=64 -EB
-#source: reloc-1b.s -march=from-abi -mabi=64 -EB
+#source: reloc-1a.s
+#source: reloc-1b.s
 #ld: -r
 #readelf: --relocs
 
index 740211ea261093077e61327e96b9d78d16e0126c..797ec94ef9126e25f74b8e124ed4414e0aafb9b1 100644 (file)
@@ -1,7 +1,7 @@
-#source: reloc-2a.s -EB -mabi=32
-#source: reloc-2b.s -EB -mabi=32
+#source: reloc-2a.s
+#source: reloc-2b.s
 #ld: --oformat=srec -Treloc-2.ld
-#objdump: -D -mmips:4000 --endian=big
+#objdump: -D -mmips:4000
 
 .*:     file format .*
 
index e90180bbd5cdf04a6f84e61628f28fb9bd5a9140..e2b886f309f61be16ccd61960e6bbcfd3ea6d775 100644 (file)
@@ -1,8 +1,8 @@
 #name: R_MIPS16_GPREL reloc n32
 #source: ../../../gas/testsuite/gas/mips/elf-rel6.s
-#as: -march=mips64 -mabi=n32 -EB
+#as: -march=mips64
 #objdump: --prefix-addresses -tdr --show-raw-insn
-#ld: -Ttext 0x20000000 -e 0x20000000 -N -melf32btsmipn32
+#ld: -Ttext 0x20000000 -e 0x20000000 -N
 
 
 .*:     file format elf.*mips.*
index b5512eef15a5f8a19c83a44f5f928f8159bd87c2..98c5ddbd7bd6c821f10a7117d50501d7b232363a 100644 (file)
@@ -1,7 +1,6 @@
 #name: MIPS reloc against local symbol overflow
 #source: reloc-local-overflow.s
-#as: -EB -32
-#ld: -EB -Tdata 0x10000 -e 0
+#ld: -Tdata 0x10000 -e 0
 #error: \A[^\n]*:\(\.data\+0x1000\): relocation truncated to fit: R_MIPS_16 against `\.data'\Z
 
 # Verify that the section name (`.data') is printed rather than `no symbol'.
index 801c5861e3e3e2cda8b42fac89fd246b1198f836..94f71101f87e3a386de8c5ce278ac45d9f126c73 100644 (file)
@@ -1,7 +1,6 @@
 #name: MIPS textrel-1
 #source: textrel-1.s
-#as: -march=from-abi -EB -n32
-#ld: -shared -melf32btsmipn32
+#ld: -shared
 #readelf: -d
 
 Dynamic section at offset .* contains 17 entries:
index 8ee279edd914b990bd15298fa53b9268f9d7f9eb..401c31538e9de1af260f53b69264ae042502587b 100644 (file)
@@ -1,6 +1,5 @@
 #name: MIPS link branch to unaligned symbol 2
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #source: ../../../gas/testsuite/gas/mips/unaligned-branch-2.s
 #error: \A[^\n]*: in function `foo':\n
 #error:   \(\.text\+0x101c\): branch to a non-instruction-aligned address\n
index 89a5e17d754c8058c24ced2d024f15f47c2a4944..3b054973105a0b2c16014fe279510ba0b407e2ef 100644 (file)
@@ -1,6 +1,5 @@
 #name: MIPS link branch to unaligned symbol 2 (ignore branch ISA)
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 --ignore-branch-isa
+#ld: -Ttext 0x1c000000 -e 0x1c000000 --ignore-branch-isa
 #source: ../../../gas/testsuite/gas/mips/unaligned-branch-2.s
 #error: \A[^\n]*: in function `foo':\n
 #error:   \(\.text\+0x101c\): branch to a non-instruction-aligned address\n
index 7d9feb8a77a35820d098ffa7449caf0e0442c810..573fcb8937035671c24602bc8bf88c0755387f83 100644 (file)
@@ -1,6 +1,5 @@
 #name: microMIPS link branch to unaligned symbol (ignore branch ISA)
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 --ignore-branch-isa
+#ld: -Ttext 0x1c000000 -e 0x1c000000 --ignore-branch-isa
 #source: ../../../gas/testsuite/gas/mips/unaligned-branch-micromips-2.s
 #error: \A[^\n]*: in function `foo':\n
 #error:   \(\.text\+0x100a\): cannot convert a branch to JALX for a non-word-aligned address\n
index 657f47592b28bec1bd3601888d031687c52af46d..50e56b42081fcaa2f6af189a9b8b14e910b3f820 100644 (file)
@@ -1,6 +1,5 @@
 #name: MIPS16 link branch to unaligned symbol (ignore branch ISA)
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 --ignore-branch-isa
+#ld: -Ttext 0x1c000000 -e 0x1c000000 --ignore-branch-isa
 #source: ../../../gas/testsuite/gas/mips/unaligned-branch-mips16-2.s
 #error:   [^\n]*: in function `foo':\n
 #error:   \(\.text\+0x1008\): cannot convert a branch to JALX for a non-word-aligned address\n
index cef0302eb2b8453efb61bbfead6be82177d5785a..9ce02b486f0453276012b97377b3058fcf8b5c99 100644 (file)
@@ -1,6 +1,5 @@
 #name: MIPSr6 link branch to unaligned symbol 1 (ignore branch ISA)
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000 --ignore-branch-isa
+#ld: -Ttext 0x1c000000 -e 0x1c000000 --ignore-branch-isa
 #source: ../../../gas/testsuite/gas/mips/unaligned-branch-r6-3.s
 #error: \A[^\n]*: in function `foo':\n
 #error:   \(\.text\+0x101c\): branch to a non-instruction-aligned address\n
index fbedebcf087c38c85bacab87bcab05a41c39673c..ac035ce34647b11cb376e1c652f93c41e220d953 100644 (file)
@@ -1,6 +1,5 @@
 #name: microMIPS link branch to unaligned symbol
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #source: ../../../gas/testsuite/gas/mips/unaligned-branch-micromips-2.s
 #error: \A[^\n]*: in function `foo':\n
 #error:   \(\.text\+0x100a\): cannot convert a branch to JALX for a non-word-aligned address\n
index c10f49ad55c1fdcb79ea039cd59d0f867bd55b96..7ff1ed364ec78fb9451b438f2d382a364ef4c2d4 100644 (file)
@@ -1,6 +1,5 @@
 #name: MIPS16 link branch to unaligned symbol
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #source: ../../../gas/testsuite/gas/mips/unaligned-branch-mips16-2.s
 #error: \A[^\n]*: in function `foo':\n
 #error:   \(\.text\+0x1002\): unsupported branch between ISA modes\n
index d3c92310e20df94bdafc9c1d7806fb1b1935bb6d..5f38f2e6183b9b56505c8e179e8c91c4ff5b1269 100644 (file)
@@ -1,6 +1,5 @@
 #name: MIPSr6 link branch to unaligned symbol 1
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #source: ../../../gas/testsuite/gas/mips/unaligned-branch-r6-3.s
 #error: \A[^\n]*: in function `foo':\n
 #error:   \(\.text\+0x101c\): branch to a non-instruction-aligned address\n
index c2a7a7959c7ef9c738f4d89bac830f2654ed0ca1..33fb8b28f5024904b7c455c115705e58eb3ea7ab 100644 (file)
@@ -1,6 +1,6 @@
 #name: MIPSr6 link branch to unaligned symbol 2
-#as: -EB -n32 -mips64r6
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#as: -mips64r6
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #source: ../../../gas/testsuite/gas/mips/unaligned-branch-r6-4.s
 #error: \A[^\n]*: in function `foo':\n
 #error:   \(\.text\+0x101c\): branch to a non-instruction-aligned address\n
index 4c7c1370a5aae84f3fa5de0e2ce32c1564ea4d01..64227a7e94edde96ae26e81c1cb98104513d6448 100644 (file)
@@ -1,8 +1,8 @@
 #name: MIPS branch to unaligned symbol
 #source: unaligned-branch.s
 #source: unaligned-text.s
-#as: -EB -32 -mips32r6
-#ld: -EB -Ttext 0x10000000 -e 0x10000000
+#as: -mips32r6
+#ld: -Ttext 0x10000000 -e 0x10000000
 #error: \A[^\n]*: in function `foo':\n
 #error:   \(\.text\+0x14\): branch to a non-instruction-aligned address\n
 #error:   \(\.text\+0x1c\): branch to a non-instruction-aligned address\n
index 094277b1de12d0b507f83541438b7c2bccb5a459..6ddf21fc9e6179688e87a426007d0db393ee266c 100644 (file)
@@ -1,8 +1,7 @@
 #name: MIPS JALX to unaligned symbol with addend 0
 #source: unaligned-jalx-addend-0.s
 #source: unaligned-insn.s -mips16
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 
 .*: +file format .*mips.*
index f161ac7f7944c8a14cf8b186e2c17e4d8f4a72ef..46640178ab80141ecfae880ad2ce393cb6d4a544 100644 (file)
@@ -1,8 +1,7 @@
 #name: MIPS JALX to unaligned symbol with addend 1
 #source: unaligned-jalx-addend-1.s
 #source: unaligned-insn.s -mips16
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #error: \A[^\n]*: in function `foo':\n
 #error:   \(\.text\+0x[0-9a-f]+\): cannot convert a jump to JALX for a non-word-aligned address\n
 #error:   \(\.text\+0x[0-9a-f]+\): cannot convert a jump to JALX for a non-word-aligned address\n
index f09ce28efa5508bc6c6ee14a72587261c180ab76..81b2dd9e4bb8466cab1bfa4fbd5527a734e9a408 100644 (file)
@@ -1,7 +1,6 @@
 #name: MIPS JALX to unaligned symbol with addend 2
 #source: unaligned-jalx-addend-2.s
 #source: unaligned-insn.s -mips16
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 #dump: unaligned-jalx-addend-0.d
index 5aba63077c0fb9fa839ef6696c06d81d8fe3d4d5..2f3a21a4db09d99037fd54fa1eb3c35907cf2d1f 100644 (file)
@@ -1,8 +1,7 @@
 #name: MIPS JALX to unaligned symbol with addend 3
 #source: unaligned-jalx-addend-3.s
 #source: unaligned-insn.s -mips16
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #error: \A[^\n]*: in function `foo':\n
 #error:   \(\.text\+0x0\): cannot convert a branch to JALX for a non-word-aligned address\n
 #error:   \(\.text\+0x8\): cannot convert a branch to JALX for a non-word-aligned address\n
index 5a4eafc301ba0bc2e7f3258041af4d295f86535e..0ce5bc7767dc6e97609d313eb478bae9ed8b556c 100644 (file)
@@ -1,8 +1,7 @@
 #name: microMIPS JALX to unaligned symbol with addend 0
 #source: unaligned-jalx-addend-0.s -mmicromips
 #source: unaligned-insn.s
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 
 .*: +file format .*mips.*
index afca7c19d4922f2b9f430d390d026ed95180d8e9..3eb1d253629b637e84720e90148874d07689db77 100644 (file)
@@ -1,8 +1,7 @@
 #name: microMIPS JALX to unaligned symbol with addend 1
 #source: unaligned-jalx-addend-1.s -mmicromips
 #source: unaligned-insn.s
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 #error: \A[^\n]*: in function `foo':\n
 #error:   \(\.text\+0x[0-9a-f]+\): cannot convert a jump to JALX for a non-word-aligned address\n
index 3e7ac16896e53f068e85affc13b0cec38d5a6499..4590f481983afa6a9e4bb4b0e53cefda603c703a 100644 (file)
@@ -1,8 +1,7 @@
 #name: MIPS16 JALX to unaligned symbol with addend 0
 #source: unaligned-jalx-addend-0.s -mips16
 #source: unaligned-insn.s
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 
 .*: +file format .*mips.*
index e89626822685e80e321ef51b3b9f36f01c91c126..5a7bc7cb8eaf7bd33454550009fd094481b18b94 100644 (file)
@@ -1,8 +1,7 @@
 #name: MIPS16 JALX to unaligned symbol with addend 1
 #source: unaligned-jalx-addend-1.s -mips16
 #source: unaligned-insn.s
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 #error: \A[^\n]*: in function `foo':\n
 #error:   \(\.text\+0x[0-9a-f]+\): cannot convert a jump to JALX for a non-word-aligned address\n
index d07c6b919b870db10ce5a161a7189a33044803e5..52ba841de2c1b014d8919a925716917c272dd5b5 100644 (file)
@@ -1,6 +1,5 @@
 #name: microMIPS link jump to unaligned symbol
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #source: ../../../gas/testsuite/gas/mips/unaligned-jump-micromips-2.s
 #error: \A[^\n]*: in function `foo':\n
 #error:   \(\.text\+0x1012\): unsupported jump between ISA modes; consider recompiling with interlinking enabled\n
index bd09a13e79928721212dd9d71acf70fc99f74c78..ba1c1b9070c004560d479baeb054d68f56ae5953 100644 (file)
@@ -1,6 +1,5 @@
 #name: MIPS16 link jump to unaligned symbol
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #source: ../../../gas/testsuite/gas/mips/unaligned-jump-mips16-2.s
 #error: \A[^\n]*: in function `foo':\n
 #error:   \(\.text\+0x100e\): cannot convert a jump to JALX for a non-word-aligned address\n
index 53de3d0c1c50a7d9ae91bca6ca230810c229f9e6..5a58b5a9467f3102da434f1af24b2827b4d3d339 100644 (file)
@@ -1,6 +1,5 @@
 #name: MIPS link jump to unaligned symbol
-#as: -EB -n32 -march=from-abi
-#ld: -EB -Ttext 0x1c000000 -e 0x1c000000
+#ld: -Ttext 0x1c000000 -e 0x1c000000
 #source: ../../../gas/testsuite/gas/mips/unaligned-jump-2.s
 #error: \A[^\n]*: in function `foo':\n
 #error:   \(\.text\+0x1004\): unsupported JALX to the same ISA mode\n
index b5e909a022a0779671083f3267e8bf41b86805bb..ab0f557e908b0dbee2709e7730a65496f723ec55 100644 (file)
@@ -1,8 +1,8 @@
 #name: MIPS LDPC from unaligned symbol 0
 #source: unaligned-ldpc-0.s
 #source: unaligned-data.s
-#as: -EB -32 -mips64r6
-#ld: -EB -Ttext 0x1c000000 -Tdata 0x1c080000 -e 0x1c000000
+#as: -mips64r6
+#ld: -Ttext 0x1c000000 -Tdata 0x1c080000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 
 .*: +file format .*mips.*
index 9f8aeeb98f7b12ac30ee2f95fe37bce309c78827..52be9b1bb3f09df0de5c140ed857e57346fc4e3d 100644 (file)
@@ -1,8 +1,8 @@
 #name: MIPS LDPC from unaligned symbol 1
 #source: unaligned-ldpc-1.s
 #source: unaligned-data.s
-#as: -EB -32 -mips64r6
-#ld: -EB -Ttext 0x1c000000 -Tdata 0x1c080000 -e 0x1c000000
+#as: -mips64r6
+#ld: -Ttext 0x1c000000 -Tdata 0x1c080000 -e 0x1c000000
 #error: \A[^\n]*: in function `foo':\n
 #error:   \(\.text\+0x[0-9a-f]+\): PC-relative load from unaligned address\n
 #error:   \(\.text\+0x[0-9a-f]+\): PC-relative load from unaligned address\n
index e7db4948203c360bae95327847a4200bcda1910e..3975a68927213960beb2d3bce78018bd3a585669 100644 (file)
@@ -1,8 +1,8 @@
 #name: MIPS LWPC from unaligned symbol 0
 #source: unaligned-lwpc-0.s
 #source: unaligned-data.s
-#as: -EB -32 -mips32r6
-#ld: -EB -Ttext 0x1c000000 -Tdata 0x1c080000 -e 0x1c000000
+#as: -mips32r6
+#ld: -Ttext 0x1c000000 -Tdata 0x1c080000 -e 0x1c000000
 #objdump: -dr --prefix-addresses --show-raw-insn
 
 .*: +file format .*mips.*
index fd543f4022c6f3ed986103addba4df148525cc6a..8b3630254263a61549fc204089f193308f79f95c 100644 (file)
@@ -1,8 +1,8 @@
 #name: MIPS LWPC from unaligned symbol 1
 #source: unaligned-lwpc-1.s
 #source: unaligned-data.s
-#as: -EB -32 -mips32r6
-#ld: -EB -Ttext 0x1c000000 -Tdata 0x1c080000 -e 0x1c000000
+#as: -mips32r6
+#ld: -Ttext 0x1c000000 -Tdata 0x1c080000 -e 0x1c000000
 #error: \A[^\n]*: in function `foo':\n
 #error:   \(\.text\+0x[0-9a-f]+\): PC-relative load from unaligned address\n
 #error:   \(\.text\+0x[0-9a-f]+\): PC-relative load from unaligned address\Z