MIPS: fix r6 testsuites
authorYunQiang Su <yunqiang.su@cipunited.com>
Wed, 10 May 2023 07:50:19 +0000 (15:50 +0800)
committerYunQiang Su <yunqiang.su@cipunited.com>
Mon, 5 Jun 2023 03:00:14 +0000 (11:00 +0800)
commitffc528aed56b9e2c171137da28690a9bb6861b0b
tree8e6247b2959f909c50551bbd3ec0777ebe32781b
parentbe0d391f22fe6009c3be907753975a984cbbcc23
MIPS: fix r6 testsuites

Introduce
run_dump_test_o32l
run_dump_test_n32l
run_dump_test_n64l
Which use `-march=from-abi` for pre-R6 testcases,
like micromips/mips16e etc.

For cases doesn't use run_dump_test_*, we use
-mips32r2 for micromips32
-mips1 for mips16-32
-march=from-abi for testcases to o32/n32/n64 both/all.

Replace `addi` with `addiu` for some cases for both r6 and pre-R6.

Introduce some new testcases for r6 with FPXX/FP64.
Introduce new testcase: comdat-reloc-r6.

Skip `default` in mips_arch_list_matching if triple is mipsisa*, due to:
  1)it will cannot match mipsr6@*.d: since mips32rN/mips64rN
    will always be used, it won't be a problem.
  2)some test think -march=mips64rN will alway true for mipsisa64rN,
    which is not true now.

This patch fix testsuite for all r6-default gnu triples:
  mipsisa32r6-linux-gnu
  mipsisa32r6el-linux-gnu
  mips-img-linux-gnu
  mipsel-img-linux-gnu
  mipsisa64r6-linux-gnu
  mipsisa64r6el-linux-gnu
182 files changed:
binutils/testsuite/binutils-all/mips/mips.exp
gas/testsuite/gas/mips/align2-el.d
gas/testsuite/gas/mips/align2.d
gas/testsuite/gas/mips/attr-gnu-abi-fp-1.d
gas/testsuite/gas/mips/attr-gnu-abi-fp-5.d [new file with mode: 0644]
gas/testsuite/gas/mips/attr-gnu-abi-fp-5.s [new file with mode: 0644]
gas/testsuite/gas/mips/attr-gnu-abi-fp-6.d [new file with mode: 0644]
gas/testsuite/gas/mips/attr-gnu-abi-fp-6.s [new file with mode: 0644]
gas/testsuite/gas/mips/attr-gnu-abi-msa-1.d
gas/testsuite/gas/mips/branch-absolute-addend.d
gas/testsuite/gas/mips/branch-absolute.d
gas/testsuite/gas/mips/branch-addend-micromips.d
gas/testsuite/gas/mips/branch-addend.d
gas/testsuite/gas/mips/branch-extern-2.d
gas/testsuite/gas/mips/branch-extern-4.d
gas/testsuite/gas/mips/branch-local-1.d
gas/testsuite/gas/mips/branch-local-2.d
gas/testsuite/gas/mips/branch-local-3.d
gas/testsuite/gas/mips/branch-local-4.d
gas/testsuite/gas/mips/branch-local-5.d
gas/testsuite/gas/mips/branch-local-6.d
gas/testsuite/gas/mips/branch-local-7.d
gas/testsuite/gas/mips/branch-local-ignore-2.d
gas/testsuite/gas/mips/branch-local-ignore-3.d
gas/testsuite/gas/mips/branch-local-ignore-5.d
gas/testsuite/gas/mips/branch-local-ignore-6.d
gas/testsuite/gas/mips/branch-section-1.d
gas/testsuite/gas/mips/branch-section-2.d
gas/testsuite/gas/mips/branch-section-3.d
gas/testsuite/gas/mips/branch-section-4.d
gas/testsuite/gas/mips/branch-weak-1.d
gas/testsuite/gas/mips/branch-weak-2.d
gas/testsuite/gas/mips/branch-weak-3.d
gas/testsuite/gas/mips/branch-weak-4.d
gas/testsuite/gas/mips/branch-weak-5.d
gas/testsuite/gas/mips/branch-weak-6.d
gas/testsuite/gas/mips/branch-weak-7.d
gas/testsuite/gas/mips/comdat-reloc-r6.d [new file with mode: 0644]
gas/testsuite/gas/mips/comdat-reloc.d
gas/testsuite/gas/mips/compact-eh-eb-1.d
gas/testsuite/gas/mips/compact-eh-eb-2.d
gas/testsuite/gas/mips/compact-eh-eb-3.d
gas/testsuite/gas/mips/compact-eh-eb-4.d
gas/testsuite/gas/mips/compact-eh-eb-5.d
gas/testsuite/gas/mips/compact-eh-eb-6.d
gas/testsuite/gas/mips/compact-eh-eb-7.d
gas/testsuite/gas/mips/compact-eh-el-1.d
gas/testsuite/gas/mips/compact-eh-el-2.d
gas/testsuite/gas/mips/compact-eh-el-3.d
gas/testsuite/gas/mips/compact-eh-el-4.d
gas/testsuite/gas/mips/compact-eh-el-5.d
gas/testsuite/gas/mips/compact-eh-el-6.d
gas/testsuite/gas/mips/compact-eh-el-7.d
gas/testsuite/gas/mips/elf-rel.d
gas/testsuite/gas/mips/elf-rel.s
gas/testsuite/gas/mips/elf-rel6.d
gas/testsuite/gas/mips/elf_ase_micromips-2.d
gas/testsuite/gas/mips/elf_ase_micromips.d
gas/testsuite/gas/mips/elf_ase_mips16-2.d
gas/testsuite/gas/mips/elf_ase_mips16.d
gas/testsuite/gas/mips/elfel-rel.d
gas/testsuite/gas/mips/insn-isa-mode.d
gas/testsuite/gas/mips/insn-opts.d
gas/testsuite/gas/mips/jalx-addend.d
gas/testsuite/gas/mips/jalx-imm.d
gas/testsuite/gas/mips/jalx-local.d
gas/testsuite/gas/mips/loongson-2f-3.d
gas/testsuite/gas/mips/micromips-b16.d
gas/testsuite/gas/mips/micromips-branch-absolute-addend.d
gas/testsuite/gas/mips/micromips-branch-absolute.d
gas/testsuite/gas/mips/micromips-warn-branch-delay-1.d
gas/testsuite/gas/mips/micromips-warn-branch-delay.d
gas/testsuite/gas/mips/mips-jalx-2.d
gas/testsuite/gas/mips/mips.exp
gas/testsuite/gas/mips/mips16-absolute-reloc-0.d
gas/testsuite/gas/mips/mips16-absolute-reloc-2.d
gas/testsuite/gas/mips/mips16-branch-absolute-1.d
gas/testsuite/gas/mips/mips16-branch-absolute-2.d
gas/testsuite/gas/mips/mips16-branch-absolute-addend-1.d
gas/testsuite/gas/mips/mips16-branch-absolute-addend.d
gas/testsuite/gas/mips/mips16-branch-absolute.d
gas/testsuite/gas/mips/mips16-branch-addend-0.d
gas/testsuite/gas/mips/mips16-branch-addend-1.d
gas/testsuite/gas/mips/mips16-branch-addend-2.d
gas/testsuite/gas/mips/mips16-branch-addend-3.d
gas/testsuite/gas/mips/mips16-branch-addend-4.d
gas/testsuite/gas/mips/mips16-branch-addend-5.d
gas/testsuite/gas/mips/mips16-branch-reloc-0.d
gas/testsuite/gas/mips/mips16-branch-reloc-1.d
gas/testsuite/gas/mips/mips16-branch-reloc-2.d
gas/testsuite/gas/mips/mips16-branch-reloc-3.d
gas/testsuite/gas/mips/mips16-branch-reloc-4.d
gas/testsuite/gas/mips/mips16-branch-reloc-5.d
gas/testsuite/gas/mips/mips16-branch-unextended-1.d
gas/testsuite/gas/mips/mips16-branch-unextended-2.d
gas/testsuite/gas/mips/mips16-dwarf2.d
gas/testsuite/gas/mips/mips16-e.d
gas/testsuite/gas/mips/mips16-extend.d
gas/testsuite/gas/mips/mips16-f.d
gas/testsuite/gas/mips/mips16-hilo.d
gas/testsuite/gas/mips/mips16-insn-length-noargs.d
gas/testsuite/gas/mips/mips16-jal-e.d
gas/testsuite/gas/mips/mips16-jal-t.d
gas/testsuite/gas/mips/mips16-pcrel-relax-0.d
gas/testsuite/gas/mips/mips16-pcrel-relax-1.d
gas/testsuite/gas/mips/mips16-pcrel-relax-2.d
gas/testsuite/gas/mips/mips16-pcrel-relax-3.d
gas/testsuite/gas/mips/mips16-vis-1.d
gas/testsuite/gas/mips/mipsel16-e.d
gas/testsuite/gas/mips/mipsel16-f.d
gas/testsuite/gas/mips/module-mfp32.d
gas/testsuite/gas/mips/module-mfp64r6-noodd.d [new file with mode: 0644]
gas/testsuite/gas/mips/module-mfp64r6.d [new file with mode: 0644]
gas/testsuite/gas/mips/module-msoft-float-r6.d [new file with mode: 0644]
gas/testsuite/gas/mips/module-msoft-float-r6.s [new file with mode: 0644]
gas/testsuite/gas/mips/module-msoft-float.d
gas/testsuite/gas/mips/nan-2008-3.d
gas/testsuite/gas/mips/nan-legacy-1.d
gas/testsuite/gas/mips/nan-legacy-2.d
gas/testsuite/gas/mips/nan-legacy-3.d
gas/testsuite/gas/mips/nan-legacy-4.d
gas/testsuite/gas/mips/nan-legacy-5.d
gas/testsuite/gas/mips/option-pic-1.d
gas/testsuite/gas/mips/option-pic-relax-0.d
gas/testsuite/gas/mips/option-pic-relax-1.d
gas/testsuite/gas/mips/option-pic-relax-3.d
gas/testsuite/gas/mips/option-pic-relax-3a.d
gas/testsuite/gas/mips/option-pic-relax-4.d
gas/testsuite/gas/mips/option-pic-relax-5.d
gas/testsuite/gas/mips/org-1.d
gas/testsuite/gas/mips/org-10.d
gas/testsuite/gas/mips/org-11.d
gas/testsuite/gas/mips/org-12.d
gas/testsuite/gas/mips/org-2.d
gas/testsuite/gas/mips/org-3.d
gas/testsuite/gas/mips/org-4.d
gas/testsuite/gas/mips/org-5.d
gas/testsuite/gas/mips/org-6.d
gas/testsuite/gas/mips/org-7.d
gas/testsuite/gas/mips/org-8.d
gas/testsuite/gas/mips/org-9.d
gas/testsuite/gas/mips/pcrel-reloc-1.d
gas/testsuite/gas/mips/pcrel-reloc-2.d
gas/testsuite/gas/mips/pcrel-reloc-3.d
gas/testsuite/gas/mips/pcrel-reloc-4.d
gas/testsuite/gas/mips/pcrel-reloc-5.d
gas/testsuite/gas/mips/pcrel-reloc-6.d
gas/testsuite/gas/mips/set-arch.d
gas/testsuite/gas/mips/tmips16-e.d
gas/testsuite/gas/mips/tmips16-f.d
gas/testsuite/gas/mips/tmipsel16-e.d
gas/testsuite/gas/mips/tmipsel16-f.d
gas/testsuite/gas/mips/unaligned-branch-r6-1.s
gas/testsuite/gas/mips/unaligned-branch-r6-3.s
gas/testsuite/gas/mips/unaligned-branch-r6-5.d
gas/testsuite/gas/mips/unaligned-jump-mips16-3.d
ld/testsuite/ld-mips-elf/attr-gnu-4-01.d
ld/testsuite/ld-mips-elf/attr-gnu-4-11.d
ld/testsuite/ld-mips-elf/attr-gnu-4-40.d
ld/testsuite/ld-mips-elf/attr-gnu-4-41.d
ld/testsuite/ld-mips-elf/attr-gnu-8-00.d
ld/testsuite/ld-mips-elf/attr-gnu-8-01.d
ld/testsuite/ld-mips-elf/attr-gnu-8-02.d
ld/testsuite/ld-mips-elf/attr-gnu-8-10.d
ld/testsuite/ld-mips-elf/attr-gnu-8-11.d
ld/testsuite/ld-mips-elf/attr-gnu-8-20.d
ld/testsuite/ld-mips-elf/attr-gnu-8-22.d
ld/testsuite/ld-mips-elf/emit-relocs-1.d
ld/testsuite/ld-mips-elf/gp-disp-sym.s
ld/testsuite/ld-mips-elf/jalr3.dd
ld/testsuite/ld-mips-elf/jalx-1.d
ld/testsuite/ld-mips-elf/mips-elf.exp
ld/testsuite/ld-mips-elf/mips16-1.d
ld/testsuite/ld-mips-elf/mips16-and-micromips.d
ld/testsuite/ld-mips-elf/mode-change-error-1.d
ld/testsuite/ld-mips-elf/n64-plt-1.dd
ld/testsuite/ld-mips-elf/n64-plt-4.dd
ld/testsuite/ld-mips-elf/nan-legacy.d
ld/testsuite/ld-mips-elf/nan-mixed-1.d
ld/testsuite/ld-mips-elf/nan-mixed-2.d
ld/testsuite/ld-mips-elf/pic-and-nonpic-2.d
ld/testsuite/ld-mips-elf/reloc-3.d