diff options
author | YunQiang Su <yunqiang.su@cipunited.com> | 2023-05-10 15:50:19 +0800 |
---|---|---|
committer | YunQiang Su <yunqiang.su@cipunited.com> | 2023-06-05 11:00:14 +0800 |
commit | ffc528aed56b9e2c171137da28690a9bb6861b0b (patch) | |
tree | 8e6247b2959f909c50551bbd3ec0777ebe32781b /ld/testsuite/ld-mips-elf/nan-mixed-2.d | |
parent | be0d391f22fe6009c3be907753975a984cbbcc23 (diff) | |
download | gdb-ffc528aed56b9e2c171137da28690a9bb6861b0b.zip gdb-ffc528aed56b9e2c171137da28690a9bb6861b0b.tar.gz gdb-ffc528aed56b9e2c171137da28690a9bb6861b0b.tar.bz2 |
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
Diffstat (limited to 'ld/testsuite/ld-mips-elf/nan-mixed-2.d')
-rw-r--r-- | ld/testsuite/ld-mips-elf/nan-mixed-2.d | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mips-elf/nan-mixed-2.d b/ld/testsuite/ld-mips-elf/nan-mixed-2.d index 388d770..a96cda0 100644 --- a/ld/testsuite/ld-mips-elf/nan-mixed-2.d +++ b/ld/testsuite/ld-mips-elf/nan-mixed-2.d @@ -1,5 +1,6 @@ #source: nan-2008.s #source: nan-legacy.s +#as: -march=from-abi #ld: -r #error: \A[^\n]*: [^\n]* linking -mnan=legacy module with previous -mnan=2008 modules\n #error: [^\n]*: failed to merge target specific data of file [^\n]*\.o\Z |